[llvm-commits] CVS: llvm/lib/Transforms/Scalar/SCCP.cpp

Devang Patel dpatel at apple.com
Thu May 17 15:10:33 PDT 2007



Changes in directory llvm/lib/Transforms/Scalar:

SCCP.cpp updated: 1.169 -> 1.170
---
Log message:

Fix PR1431: http://llvm.org/PR1431 
Test case at Transformations/SCCP/2007-05-16-InvokeCrash.ll


---
Diffs of the changes:  (+1 -1)

 SCCP.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Transforms/Scalar/SCCP.cpp
diff -u llvm/lib/Transforms/Scalar/SCCP.cpp:1.169 llvm/lib/Transforms/Scalar/SCCP.cpp:1.170
--- llvm/lib/Transforms/Scalar/SCCP.cpp:1.169	Sun May  6 08:37:16 2007
+++ llvm/lib/Transforms/Scalar/SCCP.cpp	Thu May 17 17:10:15 2007
@@ -1417,7 +1417,7 @@
         Instruction *Inst = BI++;
         if (Inst->getType() != Type::VoidTy) {
           LatticeVal &IV = Values[Inst];
-          if (IV.isConstant() || IV.isUndefined() &&
+          if ((IV.isConstant() || IV.isUndefined()) &&
               !isa<TerminatorInst>(Inst)) {
             Constant *Const = IV.isConstant()
               ? IV.getConstant() : UndefValue::get(Inst->getType());






More information about the llvm-commits mailing list