[PATCH] D76934: [GlobalISel] fix crash in IRTranslator, MachineIRBuilder when translating @llvm.dbg.value intrinsic and using -debug
Dominik Montada via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 30 00:30:04 PDT 2020
gargaroff marked 2 inline comments as done.
gargaroff added inline comments.
================
Comment at: llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp:138
"Expected inlined-at fields to agree");
- auto MIB = buildInstr(TargetOpcode::DBG_VALUE);
+ auto MIB = BuildMI(getMF(), getDL(), getTII().get(TargetOpcode::DBG_VALUE));
if (auto *CI = dyn_cast<ConstantInt>(&C)) {
----------------
arsenm wrote:
> buildInstrNoInsert?
Thanks! Didn't realize that there is such a helper.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D76934/new/
https://reviews.llvm.org/D76934
More information about the llvm-commits
mailing list