[llvm] r252582 - Remove another variable unused in -Asserts build
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 9 20:10:05 PST 2015
Author: dblaikie
Date: Mon Nov 9 22:10:04 2015
New Revision: 252582
URL: http://llvm.org/viewvc/llvm-project?rev=252582&view=rev
Log:
Remove another variable unused in -Asserts build
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=252582&r1=252581&r2=252582&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Mon Nov 9 22:10:04 2015
@@ -21393,12 +21393,12 @@ MachineBasicBlock *
X86TargetLowering::EmitLoweredCatchRet(MachineInstr *MI,
MachineBasicBlock *BB) const {
MachineFunction *MF = BB->getParent();
- const Constant *PerFn = MF->getFunction()->getPersonalityFn();
const TargetInstrInfo &TII = *Subtarget->getInstrInfo();
MachineBasicBlock *TargetMBB = MI->getOperand(0).getMBB();
DebugLoc DL = MI->getDebugLoc();
- assert(!isAsynchronousEHPersonality(classifyEHPersonality(PerFn)) &&
+ assert(!isAsynchronousEHPersonality(
+ classifyEHPersonality(MF->getFunction()->getPersonalityFn())) &&
"SEH does not use catchret!");
// Only 32-bit EH needs to worry about manually restoring stack pointers.
More information about the llvm-commits
mailing list