Skip to content

Commit 17f5f5b

Browse files
[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.
1 parent 0773854 commit 17f5f5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/X86/X86WinEHUnwindV2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ bool X86WinEHUnwindV2::runOnMachineFunction(MachineFunction &MF) {
235235
MF, Mode,
236236
"The epilog is popping more registers than the prolog "
237237
"pushed");
238-
if (PushedRegs[PushedRegs.size() - PoppedRegCount] != Reg)
238+
if (PushedRegs[PushedRegs.size() - PoppedRegCount] != Reg.id())
239239
return rejectCurrentFunctionInternalError(
240240
MF, Mode,
241241
"The epilog is popping a registers in "

0 commit comments

Comments
 (0)