summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-03-01 21:54:37 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-03-01 21:54:37 +0000
commitfa63226751e9e743b2c0d1554f7d9f4157233e28 (patch)
tree06818c02c819ee9c995ec2f3c49aa594d7955392 /llvm
parent17797076ef8ba1ceabae32692896badffba65022 (diff)
downloadbcm5719-llvm-fa63226751e9e743b2c0d1554f7d9f4157233e28.tar.gz
bcm5719-llvm-fa63226751e9e743b2c0d1554f7d9f4157233e28.zip
Although probably not necessary, guard against a potential assertion by
using isNullValue() instead of getZExtValue() == 0. llvm-svn: 34815
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Transforms/Scalar/CondPropagate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/CondPropagate.cpp b/llvm/lib/Transforms/Scalar/CondPropagate.cpp
index 4c3a9754963..fdcb404e11a 100644
--- a/llvm/lib/Transforms/Scalar/CondPropagate.cpp
+++ b/llvm/lib/Transforms/Scalar/CondPropagate.cpp
@@ -139,7 +139,7 @@ void CondProp::SimplifyPredecessors(BranchInst *BI) {
// ultimate destination.
bool PHIGone = PN->getNumIncomingValues() == 2;
RevectorBlockTo(PN->getIncomingBlock(i-1),
- BI->getSuccessor(CB->getZExtValue() == 0));
+ BI->getSuccessor(CB->isNullValue()));
++NumBrThread;
// If there were two predecessors before this simplification, the PHI node
OpenPOWER on IntegriCloud