mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-07-22 09:29:31 +00:00
[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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225143 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c0c36083da
commit
186c5ccb07
@ -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
Block a user