[llvm-commits] [llvm] r85777 - /llvm/trunk/lib/Transforms/Scalar/SCCP.cpp
Chris Lattner
sabre at nondot.org
Sun Nov 1 18:48:17 PST 2009
Author: lattner
Date: Sun Nov 1 20:48:17 2009
New Revision: 85777
URL: http://llvm.org/viewvc/llvm-project?rev=85777&view=rev
Log:
fix failures introduced in r85774
Modified:
llvm/trunk/lib/Transforms/Scalar/SCCP.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/SCCP.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/SCCP.cpp?rev=85777&r1=85776&r2=85777&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/SCCP.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/SCCP.cpp Sun Nov 1 20:48:17 2009
@@ -451,7 +451,8 @@
}
// Constant condition variables mean the branch can only go a single way.
- Succs[cast<ConstantInt>(BCValue.getConstant())->isZero()] = true;
+ if (BCValue.isConstant())
+ Succs[cast<ConstantInt>(BCValue.getConstant())->isZero()] = true;
return;
}
More information about the llvm-commits
mailing list