llvm.org GIT mirror llvm / 6a551e7
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 Dan Gohman 12 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
677677 /// return true.
678678 ///
679679 bool Andersens::pointsToConstantMemory(const Value *P) {
680 Node *N = &GraphNodes[FindNode(getNode((Value*)P))];
680 Node *N = &GraphNodes[FindNode(getNode(const_cast(P)))];
681681 unsigned i;
682682
683683 for (SparseBitVector<>::iterator bi = N->PointsTo->begin();