mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-28 06:24:57 +00:00
Fix unused variable warning for non-asserts builds. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225133 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -485,12 +485,12 @@ static void computeKnownBitsFromAssume(Value *V, APInt &KnownZero,
|
|||||||
|
|
||||||
unsigned BitWidth = KnownZero.getBitWidth();
|
unsigned BitWidth = KnownZero.getBitWidth();
|
||||||
|
|
||||||
Function *F = const_cast<Function*>(Q.CxtI->getParent()->getParent());
|
|
||||||
for (auto &AssumeVH : Q.AC->assumptions()) {
|
for (auto &AssumeVH : Q.AC->assumptions()) {
|
||||||
if (!AssumeVH)
|
if (!AssumeVH)
|
||||||
continue;
|
continue;
|
||||||
CallInst *I = cast<CallInst>(AssumeVH);
|
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!");
|
"Got assumption for the wrong function!");
|
||||||
if (Q.ExclInvs.count(I))
|
if (Q.ExclInvs.count(I))
|
||||||
continue;
|
continue;
|
||||||
|
Reference in New Issue
Block a user