Fix unused variable warning for non-asserts builds. NFC.

llvm-svn: 225133
This commit is contained in:
Michael Kuperstein 2015-01-04 13:35:44 +00:00
parent ca6375fb75
commit 58c3f6cc31
1 changed files with 2 additions and 2 deletions

View File

@ -485,12 +485,12 @@ static void computeKnownBitsFromAssume(Value *V, APInt &KnownZero,
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;