Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[llc] Initialize TargetLoweringObjectFile for MIR input
MIRParser uses MC and transitively calls MCObjectFileInfo::getObjectFileType(). TargetLoweringObjectFile::Initialize should be called beforehand to initialize MCObjectFileInfo::Env. This manifested as a -fsanitize=undefined test/CodeGen/MIR/X86/instr-symbols-and-mcsymbol-operands.mir failure when D71360/aa5ee8f244441a8ea103a7e0ed8b6f3e74454516 was committed.
- Loading branch information