Skip to content

Commit bf6bc62

Browse files
committed
GlobalISel: Use Register and update comment physical register syntax
1 parent 1eb279d commit bf6bc62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ MachineInstrBuilder MachineIRBuilder::buildConstDbgValue(const Constant &C,
106106
} else if (auto *CFP = dyn_cast<ConstantFP>(&C)) {
107107
MIB.addFPImm(CFP);
108108
} else {
109-
// Insert %noreg if we didn't find a usable constant and had to drop it.
110-
MIB.addReg(0U);
109+
// Insert $noreg if we didn't find a usable constant and had to drop it.
110+
MIB.addReg(Register());
111111
}
112112

113113
MIB.addImm(0).addMetadata(Variable).addMetadata(Expr);

0 commit comments

Comments
 (0)