aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ValueTracking.cpp
diff options
context:
space:
mode:
authorMichael Kuperstein <michael.m.kuperstein@intel.com>2015-01-04 13:35:44 +0000
committerMichael Kuperstein <michael.m.kuperstein@intel.com>2015-01-04 13:35:44 +0000
commit58c3f6cc3112ed5ca71d7e5b1321ef62eba78e33 (patch)
tree3e1d34b967a101383ef25e2df3f58cc821fdd499 /llvm/lib/Analysis/ValueTracking.cpp
parentca6375fb75979ac6098543613e2ac82d48afde5c (diff)
downloadllvm-58c3f6cc3112ed5ca71d7e5b1321ef62eba78e33.zip
llvm-58c3f6cc3112ed5ca71d7e5b1321ef62eba78e33.tar.gz
llvm-58c3f6cc3112ed5ca71d7e5b1321ef62eba78e33.tar.bz2
Fix unused variable warning for non-asserts builds. NFC.
llvm-svn: 225133
Diffstat (limited to 'llvm/lib/Analysis/ValueTracking.cpp')
-rw-r--r--llvm/lib/Analysis/ValueTracking.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp
index 09e7181..48710f7 100644
--- a/llvm/lib/Analysis/ValueTracking.cpp
+++ b/llvm/lib/Analysis/ValueTracking.cpp
@@ -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;