forked from OSchip/llvm-project
[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
This commit is contained in:
parent
5f1fa85e5b
commit
75c11b88af
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue