[llvm-commits] [llvm] r164576 - /llvm/trunk/lib/Transforms/Scalar/DeadStoreElimination.cpp
Nick Lewycky
nicholas at mxc.ca
Mon Sep 24 16:47:24 PDT 2012
Author: nicholas
Date: Mon Sep 24 18:47:23 2012
New Revision: 164576
URL: http://llvm.org/viewvc/llvm-project?rev=164576&view=rev
Log:
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.
Modified:
llvm/trunk/lib/Transforms/Scalar/DeadStoreElimination.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/DeadStoreElimination.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/DeadStoreElimination.cpp?rev=164576&r1=164575&r2=164576&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/DeadStoreElimination.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/DeadStoreElimination.cpp Mon Sep 24 18:47:23 2012
@@ -266,8 +266,8 @@
}
}
- 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 @@
}
}
- CallSite CS(I);
+ CallSite CS = I;
// All the supported functions so far happen to have dest as their first
// argument.
return CS.getArgument(0);
More information about the llvm-commits
mailing list