Remove unused name of variable to quiet a warning. Also canonicalize a
authorNick Lewycky <nicholas@mxc.ca>
Mon, 24 Sep 2012 23:47:23 +0000 (23:47 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Mon, 24 Sep 2012 23:47:23 +0000 (23:47 +0000)
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

lib/Transforms/Scalar/DeadStoreElimination.cpp

index c56d6c2922ac78f93858f8cae54151b80e9b582c..f96309eb4d178c93c93fe7a453a9a63e33756d2c 100644 (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);