[llvm-commits] [llvm] r47437 - /llvm/trunk/lib/Analysis/IPA/Andersens.cpp
Dan Gohman
gohman at apple.com
Thu Feb 21 09:33:25 PST 2008
Author: djg
Date: Thu Feb 21 11:33:24 2008
New Revision: 47437
URL: http://llvm.org/viewvc/llvm-project?rev=47437&view=rev
Log:
Change a C-style cast to const_cast, to avoid a -Wcast-qual warning.
Modified:
llvm/trunk/lib/Analysis/IPA/Andersens.cpp
Modified: llvm/trunk/lib/Analysis/IPA/Andersens.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/IPA/Andersens.cpp?rev=47437&r1=47436&r2=47437&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/IPA/Andersens.cpp (original)
+++ llvm/trunk/lib/Analysis/IPA/Andersens.cpp Thu Feb 21 11:33:24 2008
@@ -678,7 +678,7 @@
/// return true.
///
bool Andersens::pointsToConstantMemory(const Value *P) {
- Node *N = &GraphNodes[FindNode(getNode((Value*)P))];
+ Node *N = &GraphNodes[FindNode(getNode(const_cast<Value*>(P)))];
unsigned i;
for (SparseBitVector<>::iterator bi = N->PointsTo->begin();
More information about the llvm-commits
mailing list