Remove unused variables caught by GCC's -Wunused-but-set-variable.
authorBenjamin Kramer <benny.kra@googlemail.com>
Tue, 3 May 2011 16:00:27 +0000 (16:00 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Tue, 3 May 2011 16:00:27 +0000 (16:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130755 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AsmParser/LLParser.cpp
lib/Target/Sparc/SparcISelLowering.cpp
lib/Transforms/Instrumentation/PathProfiling.cpp

index a2c53bef364f2b9e1690d282b1033c02d96badcd..9df98b127bcfd14ce520eff30eac86f7721f5d68 100644 (file)
@@ -3003,7 +3003,6 @@ int LLParser::ParseInstruction(Instruction *&Inst, BasicBlock *BB,
   case lltok::kw_sub:
   case lltok::kw_mul:
   case lltok::kw_shl: {
-    LocTy ModifierLoc = Lex.getLoc();
     bool NUW = EatIfPresent(lltok::kw_nuw);
     bool NSW = EatIfPresent(lltok::kw_nsw);
     if (!NUW) NUW = EatIfPresent(lltok::kw_nuw);
index edb62fa0c6255ce222c2ed257572f229532200c0..5e6f7b1fd5685fa7a60c27c001198653e3dd4312 100644 (file)
@@ -182,8 +182,6 @@ SparcTargetLowering::LowerFormalArguments(SDValue Chain,
     }
 
     if (VA.isRegLoc()) {
-      EVT RegVT = VA.getLocVT();
-
       if (VA.needsCustom()) {
         assert(VA.getLocVT() == MVT::f64);
         unsigned VRegHi = RegInfo.createVirtualRegister(&SP::IntRegsRegClass);
index 6b3f12dcbc845aeadec6ced889e3eec48cb4b02d..182a43d396c04c9f0fba796f71e4b98738e0e8ac 100644 (file)
@@ -1351,8 +1351,6 @@ bool PathProfiler::runOnModule(Module &M) {
     return false;
   }
 
-  BasicBlock::iterator insertPoint = Main->getEntryBlock().getFirstNonPHI();
-
   llvmIncrementHashFunction = M.getOrInsertFunction(
     "llvm_increment_path_count",
     Type::getVoidTy(*Context), // return type