From: David Blaikie Date: Tue, 10 Nov 2015 04:10:04 +0000 (+0000) Subject: Remove another variable unused in -Asserts build X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=41569477024bfd361b173840c7082dcdbc9a8b3a;hp=3747ae395d2970d98b17c386ff0d1e18f8604677 Remove another variable unused in -Asserts build git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252582 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 5a7214f912b..8b97d4dc09b 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -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.