mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 16:17:17 +00:00
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
This commit is contained in:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user