forked from OSchip/llvm-project
Change a C-style cast to const_cast, to avoid a -Wcast-qual warning.
llvm-svn: 47437
This commit is contained in:
parent
4999168309
commit
d723b13f14
|
@ -678,7 +678,7 @@ void Andersens::getMustAliases(Value *P, std::vector<Value*> &RetVals) {
|
||||||
/// return true.
|
/// return true.
|
||||||
///
|
///
|
||||||
bool Andersens::pointsToConstantMemory(const Value *P) {
|
bool Andersens::pointsToConstantMemory(const Value *P) {
|
||||||
Node *N = &GraphNodes[FindNode(getNode((Value*)P))];
|
Node *N = &GraphNodes[FindNode(getNode(const_cast<Value*>(P)))];
|
||||||
unsigned i;
|
unsigned i;
|
||||||
|
|
||||||
for (SparseBitVector<>::iterator bi = N->PointsTo->begin();
|
for (SparseBitVector<>::iterator bi = N->PointsTo->begin();
|
||||||
|
|
Loading…
Reference in New Issue