aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2012-09-24 23:47:23 +0000
committerNick Lewycky <nicholas@mxc.ca>2012-09-24 23:47:23 +0000
commit1afd6bb93998d85582d85a0258bb9976061d86dd (patch)
tree5527121b3584b643d4bffb86b5afeee22dcee497
parente9525d862454674ce87a9da52b2d05915a142206 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164576 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/Scalar/DeadStoreElimination.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/Scalar/DeadStoreElimination.cpp b/lib/Transforms/Scalar/DeadStoreElimination.cpp
index c56d6c2922..f96309eb4d 100644
--- a/lib/Transforms/Scalar/DeadStoreElimination.cpp
+++ b/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);