Remove unused name of variable to quiet a warning. Also canonicalize a

declaration to use the same form as in the rest of the file. No functionality
change.

llvm-svn: 164576
This commit is contained in:
Nick Lewycky 2012-09-24 23:47:23 +00:00
parent 8e747d3671
commit 627d217727
1 changed files with 3 additions and 3 deletions

View File

@ -266,8 +266,8 @@ static bool isRemovable(Instruction *I) {
}
}
if (CallSite CS = I) // If we assume hasMemoryWrite(I) is true,
return true; // then there's nothing left to check.
if (CallSite(I)) // If we assume hasMemoryWrite(I) is true,
return true; // then there's nothing left to check.
return false;
}
@ -310,7 +310,7 @@ static Value *getStoredPointerOperand(Instruction *I) {
}
}
CallSite CS(I);
CallSite CS = I;
// All the supported functions so far happen to have dest as their first
// argument.
return CS.getArgument(0);