summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2017-02-19 00:33:37 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2017-02-19 00:33:37 +0000
commitdba9011942e45331312d0adc392beee03d39961f (patch)
tree978c6024b9a61731f640b4b6f92e96ad184fddbc /llvm/lib/Transforms
parent599b872ca27ce624143f2749facb8037c31170fa (diff)
downloadbcm5719-llvm-dba9011942e45331312d0adc392beee03d39961f.tar.gz
bcm5719-llvm-dba9011942e45331312d0adc392beee03d39961f.zip
Fix unused variable warning when assertions are disabled.
llvm-svn: 295587
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Utils/PredicateInfo.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Utils/PredicateInfo.cpp b/llvm/lib/Transforms/Utils/PredicateInfo.cpp
index cd3974db8c7..b97a1bc766c 100644
--- a/llvm/lib/Transforms/Utils/PredicateInfo.cpp
+++ b/llvm/lib/Transforms/Utils/PredicateInfo.cpp
@@ -317,9 +317,9 @@ void PredicateInfo::processAssume(IntrinsicInst *II, BasicBlock *AssumeBB,
} else if (auto *BinOp = dyn_cast<BinaryOperator>(Cond)) {
// Otherwise, it should be an AND.
assert(BinOp->getOpcode() == Instruction::And &&
- "Should have been an and");
- auto *PA = new PredicateAssume(Cond, II, Cond);
- addInfoFor(OpsToRename, Cond, PA);
+ "Should have been an AND");
+ auto *PA = new PredicateAssume(BinOp, II, BinOp);
+ addInfoFor(OpsToRename, BinOp, PA);
} else {
llvm_unreachable("Unknown type of condition");
}
@@ -389,7 +389,7 @@ void PredicateInfo::processBranch(BranchInst *BI, BasicBlock *BranchBB,
"Should have been an AND or an OR");
// The actual value of the binop is not subject to the same restrictions
// as the comparison. It's either true or false on the true/false branch.
- InsertHelper(Cond, false, false, Cond);
+ InsertHelper(BinOp, false, false, BinOp);
} else {
llvm_unreachable("Unknown type of condition");
}
OpenPOWER on IntegriCloud