diff options
author | Dan Gohman <djg@cray.com> | 2008-02-21 17:33:24 +0000 |
---|---|---|
committer | Dan Gohman <djg@cray.com> | 2008-02-21 17:33:24 +0000 |
commit | dd96f72d7adce5da5a3deefb10d57fb232e2cdde (patch) | |
tree | b31da0279118b566da93227faecaf3d314c7216e /lib | |
parent | 2205e3b404764988bdf78b76e965447159c29e8a (diff) | |
download | external_llvm-dd96f72d7adce5da5a3deefb10d57fb232e2cdde.zip external_llvm-dd96f72d7adce5da5a3deefb10d57fb232e2cdde.tar.gz external_llvm-dd96f72d7adce5da5a3deefb10d57fb232e2cdde.tar.bz2 |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Analysis/IPA/Andersens.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/IPA/Andersens.cpp b/lib/Analysis/IPA/Andersens.cpp index 399ce1f..22f151b 100644 --- a/lib/Analysis/IPA/Andersens.cpp +++ b/lib/Analysis/IPA/Andersens.cpp @@ -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(); |