Remove another variable unused in -Asserts build
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 10 Nov 2015 04:10:04 +0000 (04:10 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 10 Nov 2015 04:10:04 +0000 (04:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252582 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.cpp

index 5a7214f912bcd13b88bd996e9fef7ff5037f48f4..8b97d4dc09ba9632415ef405e265d6be5dc3ed5b 100644 (file)
@@ -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.