[llvm] r234043 - Fixing build warnings.

Andrew Kaylor andrew.kaylor at intel.com
Fri Apr 3 12:45:32 PDT 2015


Author: akaylor
Date: Fri Apr  3 14:45:32 2015
New Revision: 234043

URL: http://llvm.org/viewvc/llvm-project?rev=234043&view=rev
Log:
Fixing build warnings.


Modified:
    llvm/trunk/lib/CodeGen/WinEHPrepare.cpp

Modified: llvm/trunk/lib/CodeGen/WinEHPrepare.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/WinEHPrepare.cpp?rev=234043&r1=234042&r2=234043&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/WinEHPrepare.cpp (original)
+++ llvm/trunk/lib/CodeGen/WinEHPrepare.cpp Fri Apr  3 14:45:32 2015
@@ -682,7 +682,6 @@ void WinEHPrepare::completeNestedLanding
   // and remap return instructions in the nested handlers that should return
   // to an address in the outlined handler.
   Function *OutlinedHandlerFn = OutlinedBB->getParent();
-  const BasicBlock *OriginalBB = OriginalLPad->getParent();
   BasicBlock::const_iterator II = OriginalLPad;
   ++II;
   // The instruction after the landing pad should now be a call to eh.actions.
@@ -693,7 +692,6 @@ void WinEHPrepare::completeNestedLanding
   // Remap the exception variables into the outlined function.
   WinEHFrameVariableMaterializer Materializer(OutlinedHandlerFn, FrameVarInfo);
   SmallVector<BlockAddress *, 4> ActionTargets;
-  unsigned NumArgs = EHActions->getNumArgOperands();
   SmallVector<ActionHandler *, 4> ActionList;
   parseEHActions(EHActions, ActionList);
   for (auto *Action : ActionList) {





More information about the llvm-commits mailing list