Skip to content

Commit 5ca444b

Browse files
author
z1.cciauto
committed
merge amd-debug into amd-staging
2 parents 16b4168 + c1eb866 commit 5ca444b

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)