Change a C-style cast to const_cast, to avoid a -Wcast-qual warning.

llvm-svn: 47437
This commit is contained in:
Dan Gohman 2008-02-21 17:33:24 +00:00
parent 4999168309
commit d723b13f14
1 changed files with 1 additions and 1 deletions

View File

@ -678,7 +678,7 @@ void Andersens::getMustAliases(Value *P, std::vector<Value*> &RetVals) {
/// 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();