From: Dan Gohman Date: Thu, 21 Feb 2008 17:33:24 +0000 (+0000) Subject: Change a C-style cast to const_cast, to avoid a -Wcast-qual warning. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6a551e73fd0dada56542d372cedccbf86fcbaf01;p=oota-llvm.git Change a C-style cast to const_cast, to avoid a -Wcast-qual warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47437 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/IPA/Andersens.cpp b/lib/Analysis/IPA/Andersens.cpp index 399ce1f45df..22f151b0953 100644 --- a/lib/Analysis/IPA/Andersens.cpp +++ b/lib/Analysis/IPA/Andersens.cpp @@ -678,7 +678,7 @@ void Andersens::getMustAliases(Value *P, std::vector &RetVals) { /// return true. /// bool Andersens::pointsToConstantMemory(const Value *P) { - Node *N = &GraphNodes[FindNode(getNode((Value*)P))]; + Node *N = &GraphNodes[FindNode(getNode(const_cast(P)))]; unsigned i; for (SparseBitVector<>::iterator bi = N->PointsTo->begin();