diff --git a/llvm/lib/Target/X86/X86WinEHUnwindV2.cpp b/llvm/lib/Target/X86/X86WinEHUnwindV2.cpp index e9081a4ae4e72..0af7cd1e92a2a 100644 --- a/llvm/lib/Target/X86/X86WinEHUnwindV2.cpp +++ b/llvm/lib/Target/X86/X86WinEHUnwindV2.cpp @@ -232,7 +232,7 @@ bool X86WinEHUnwindV2::runOnMachineFunction(MachineFunction &MF) { MF, Mode, "The epilog is popping more registers than the prolog pushed"); if (PushedRegs[PushedRegs.size() - PoppedRegCount] != - MI.getOperand(0).getReg()) + MI.getOperand(0).getReg().id()) return rejectCurrentFunctionInternalError( MF, Mode, "The epilog is popping a registers in "