forked from OSchip/llvm-project
Remove unused variables caught by GCC's -Wunused-but-set-variable.
llvm-svn: 130755
This commit is contained in:
parent
a51ef94ec1
commit
9c373c1c7a
|
@ -3003,7 +3003,6 @@ int LLParser::ParseInstruction(Instruction *&Inst, BasicBlock *BB,
|
||||||
case lltok::kw_sub:
|
case lltok::kw_sub:
|
||||||
case lltok::kw_mul:
|
case lltok::kw_mul:
|
||||||
case lltok::kw_shl: {
|
case lltok::kw_shl: {
|
||||||
LocTy ModifierLoc = Lex.getLoc();
|
|
||||||
bool NUW = EatIfPresent(lltok::kw_nuw);
|
bool NUW = EatIfPresent(lltok::kw_nuw);
|
||||||
bool NSW = EatIfPresent(lltok::kw_nsw);
|
bool NSW = EatIfPresent(lltok::kw_nsw);
|
||||||
if (!NUW) NUW = EatIfPresent(lltok::kw_nuw);
|
if (!NUW) NUW = EatIfPresent(lltok::kw_nuw);
|
||||||
|
|
|
@ -182,8 +182,6 @@ SparcTargetLowering::LowerFormalArguments(SDValue Chain,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (VA.isRegLoc()) {
|
if (VA.isRegLoc()) {
|
||||||
EVT RegVT = VA.getLocVT();
|
|
||||||
|
|
||||||
if (VA.needsCustom()) {
|
if (VA.needsCustom()) {
|
||||||
assert(VA.getLocVT() == MVT::f64);
|
assert(VA.getLocVT() == MVT::f64);
|
||||||
unsigned VRegHi = RegInfo.createVirtualRegister(&SP::IntRegsRegClass);
|
unsigned VRegHi = RegInfo.createVirtualRegister(&SP::IntRegsRegClass);
|
||||||
|
|
|
@ -1351,8 +1351,6 @@ bool PathProfiler::runOnModule(Module &M) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
BasicBlock::iterator insertPoint = Main->getEntryBlock().getFirstNonPHI();
|
|
||||||
|
|
||||||
llvmIncrementHashFunction = M.getOrInsertFunction(
|
llvmIncrementHashFunction = M.getOrInsertFunction(
|
||||||
"llvm_increment_path_count",
|
"llvm_increment_path_count",
|
||||||
Type::getVoidTy(*Context), // return type
|
Type::getVoidTy(*Context), // return type
|
||||||
|
|
Loading…
Reference in New Issue