diff options
| author | Fangrui Song <maskray@google.com> | 2020-03-20 10:35:19 -0700 |
|---|---|---|
| committer | Fangrui Song <maskray@google.com> | 2020-03-20 11:18:36 -0700 |
| commit | fe5937cb33b7753ff95edbe7cbd3be549961b733 (patch) | |
| tree | 898914b8ccfb00c1a1c93e48590a597a860befa2 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
| parent | 636665331bbd4c369a9f33c4d35fb9a863c94646 (diff) | |
[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.
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions
