Skip to content

Commit c1eb866

Browse files
authored
[HeterogeneousDWARF] Fix expensive checks DBG_INSTR_REF failure (llvm#1982)
1 parent 023b507 commit c1eb866

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/MachineFunction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1341,7 +1341,7 @@ static bool finalizeInstrRefRegSequenceNew(
13411341
for (const Part &P : drop_begin(Parts, 1))
13421342
DbgInstr.addOperand(MachineOperand::CreateDbgInstrRef(
13431343
P.DbgInstrNum.first, P.DbgInstrNum.second));
1344-
DbgInstr.getDebugExpressionOp() = MachineOperand::CreateMetadata(NewExpr);
1344+
DbgInstr.getDebugExpressionOp().setMetadata(NewExpr);
13451345
assert(NewExpr->getNewNumLocationOperands() ==
13461346
DbgInstr.getNumDebugOperands());
13471347
return true;

0 commit comments

Comments
 (0)