diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2015-01-04 23:13:57 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2015-01-04 23:13:57 +0000 |
commit | 75c11b88af8ca66274e2353246ace0d70ddc30fc (patch) | |
tree | 534c93407b3acbbc90a5e63049710c30d00f9592 /llvm/lib/Analysis/ValueTracking.cpp | |
parent | 5f1fa85e5bcbadb3e54326e54571915cdff03da1 (diff) | |
download | llvm-75c11b88af8ca66274e2353246ace0d70ddc30fc.zip llvm-75c11b88af8ca66274e2353246ace0d70ddc30fc.tar.gz llvm-75c11b88af8ca66274e2353246ace0d70ddc30fc.tar.bz2 |
[PM] Cleanup a const_cast and other machinery left over in this code
from before I removed thet non-const use of the function.
The unused variable that held the const_cast was already kindly removed
by Michael.
llvm-svn: 225143
Diffstat (limited to 'llvm/lib/Analysis/ValueTracking.cpp')
-rw-r--r-- | llvm/lib/Analysis/ValueTracking.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp index 48710f7..bba2f9f 100644 --- a/llvm/lib/Analysis/ValueTracking.cpp +++ b/llvm/lib/Analysis/ValueTracking.cpp @@ -489,8 +489,7 @@ static void computeKnownBitsFromAssume(Value *V, APInt &KnownZero, if (!AssumeVH) continue; CallInst *I = cast<CallInst>(AssumeVH); - assert((I->getParent()->getParent() == - const_cast<Function*>(Q.CxtI->getParent()->getParent())) && + assert(I->getParent()->getParent() == Q.CxtI->getParent()->getParent() && "Got assumption for the wrong function!"); if (Q.ExclInvs.count(I)) continue; |