diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2012-09-24 23:47:23 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2012-09-24 23:47:23 +0000 |
commit | 627d21772708a26ec5412e7a2fa362949816bc76 (patch) | |
tree | 0beab3d7b98c11b2c742f67719c92f6409dc3f99 /llvm/lib/Transforms | |
parent | 8e747d36713d305a0e872f3329ad396f54ca67a3 (diff) | |
download | bcm5719-llvm-627d21772708a26ec5412e7a2fa362949816bc76.tar.gz bcm5719-llvm-627d21772708a26ec5412e7a2fa362949816bc76.zip |
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
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp b/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp index c56d6c2922a..f96309eb4d1 100644 --- a/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp +++ b/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp @@ -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); |