[X86] Avoid Register implicit int conversion
PushedRegisters in this patch needs to be of type int64_t because iot is grabbing registers from immediate operands of pseudo instructions. However, we then compare to an actual register type later, which relies on the implicit conversion within Register to int, which can result in build failures in some configurations.
This commit is contained in:
parent
0773854575
commit
17f5f5ba55
@ -235,7 +235,7 @@ bool X86WinEHUnwindV2::runOnMachineFunction(MachineFunction &MF) {
|
||||
MF, Mode,
|
||||
"The epilog is popping more registers than the prolog "
|
||||
"pushed");
|
||||
if (PushedRegs[PushedRegs.size() - PoppedRegCount] != Reg)
|
||||
if (PushedRegs[PushedRegs.size() - PoppedRegCount] != Reg.id())
|
||||
return rejectCurrentFunctionInternalError(
|
||||
MF, Mode,
|
||||
"The epilog is popping a registers in "
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user