git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225133
91177308-0d34-0410-b5e6-
96231b3b80d8
unsigned BitWidth = KnownZero.getBitWidth();
- Function *F = const_cast<Function*>(Q.CxtI->getParent()->getParent());
for (auto &AssumeVH : Q.AC->assumptions()) {
if (!AssumeVH)
continue;
CallInst *I = cast<CallInst>(AssumeVH);
- assert(I->getParent()->getParent() == F &&
+ assert((I->getParent()->getParent() ==
+ const_cast<Function*>(Q.CxtI->getParent()->getParent())) &&
"Got assumption for the wrong function!");
if (Q.ExclInvs.count(I))
continue;