Skip to content

Commit a921486

Browse files
committed
fixup! Use asMCReg to check the conversion from Register to MCRegister.
1 parent 1cfae92 commit a921486

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/AArch64/GISel/AArch64CallLowering.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@ struct FormalArgHandler : public IncomingArgHandler {
215215
: IncomingArgHandler(MIRBuilder, MRI) {}
216216

217217
void markPhysRegUsed(Register PhysReg) override {
218-
MIRBuilder.getMRI()->addLiveIn(PhysReg);
219-
MIRBuilder.getMBB().addLiveIn(PhysReg);
218+
MIRBuilder.getMRI()->addLiveIn(PhysReg.asMCReg());
219+
MIRBuilder.getMBB().addLiveIn(PhysReg.asMCReg());
220220
}
221221
};
222222

0 commit comments

Comments
 (0)