Skip to content

Commit a6359f3

Browse files
committed
[HeterogeneousDWARF] Fix expensive checks DBG_INSTR_REF failure
1 parent 59533ea commit a6359f3

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
@@ -1290,7 +1290,7 @@ static bool finalizeInstrRefRegSequenceNew(
12901290
for (const Part &P : drop_begin(Parts, 1))
12911291
DbgInstr.addOperand(MachineOperand::CreateDbgInstrRef(
12921292
P.DbgInstrNum.first, P.DbgInstrNum.second));
1293-
DbgInstr.getDebugExpressionOp() = MachineOperand::CreateMetadata(NewExpr);
1293+
DbgInstr.getDebugExpressionOp().setMetadata(NewExpr);
12941294
assert(NewExpr->getNewNumLocationOperands() ==
12951295
DbgInstr.getNumDebugOperands());
12961296
return true;

0 commit comments

Comments
 (0)