From 627d21772708a26ec5412e7a2fa362949816bc76 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Mon, 24 Sep 2012 23:47:23 +0000 Subject: [PATCH] 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 --- llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp b/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp index c56d6c2..f96309e 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); -- 2.7.4