Changes in directory llvm/lib/CodeGen/SelectionDAG:

SelectionDAGISel.cpp updated: 1.385 -> 1.386
---
Log message:

Stupid bug.

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

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


Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.385 
llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.386
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.385    Fri Mar 16 
03:46:27 2007
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp  Fri Mar 16 12:50:20 2007
@@ -4009,7 +4009,7 @@
       Loop *L = loopInfo->getLoopFor(UserBB);
 
       // Only sink if expression is a loop invariant in the use BB.
-      if (isLoopInvariantInst(BinOp, L) && !User->use_empty()) {
+      if (L && isLoopInvariantInst(BinOp, L) && !User->use_empty()) {
         const Type *UseTy = NULL;
         // FIXME: We are assuming all the uses of the GEP will have the
         // same type.



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to