Remove some unused variables to clean up the -Werror build
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 10 Nov 2015 03:16:28 +0000 (03:16 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 10 Nov 2015 03:16:28 +0000 (03:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252580 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86FrameLowering.cpp
lib/Target/X86/X86ISelLowering.cpp

index 437e671dc99b9c16e32a4a8dd7b957e936579a34..21b912603be86fca978abbbdffd478547e40ef6d 100644 (file)
@@ -749,8 +749,8 @@ MachineInstr *X86FrameLowering::emitStackProbeInlineStub(
 
   assert(InProlog && "ChkStkStub called outside prolog!");
 
-  MachineInstrBuilder CI = BuildMI(MBB, MBBI, DL, TII.get(X86::CALLpcrel32))
-                               .addExternalSymbol("__chkstk_stub");
+  BuildMI(MBB, MBBI, DL, TII.get(X86::CALLpcrel32))
+      .addExternalSymbol("__chkstk_stub");
 
   return MBBI;
 }
index f23b5656f88828054e4d7f1e05f037e79ee23fc6..5a7214f912bcd13b88bd996e9fef7ff5037f48f4 100644 (file)
@@ -21394,12 +21394,12 @@ X86TargetLowering::EmitLoweredCatchRet(MachineInstr *MI,
                                        MachineBasicBlock *BB) const {
   MachineFunction *MF = BB->getParent();
   const Constant *PerFn = MF->getFunction()->getPersonalityFn();
-  bool IsSEH = isAsynchronousEHPersonality(classifyEHPersonality(PerFn));
   const TargetInstrInfo &TII = *Subtarget->getInstrInfo();
   MachineBasicBlock *TargetMBB = MI->getOperand(0).getMBB();
   DebugLoc DL = MI->getDebugLoc();
 
-  assert(!IsSEH && "SEH does not use catchret!");
+  assert(!isAsynchronousEHPersonality(classifyEHPersonality(PerFn)) &&
+         "SEH does not use catchret!");
 
   // Only 32-bit EH needs to worry about manually restoring stack pointers.
   if (!Subtarget->is32Bit())