[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

Chris Lattner lattner at cs.uiuc.edu
Thu Jul 20 12:02:34 PDT 2006



Changes in directory llvm/lib/CodeGen/SelectionDAG:

SelectionDAGISel.cpp updated: 1.258 -> 1.259
---
Log message:

Mems can be in the output list also.  This is the second half of a fix for
PR833: http://llvm.org/PR833 


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

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


Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.258 llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.259
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.258	Wed Jun 28 18:17:23 2006
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp	Thu Jul 20 14:02:21 2006
@@ -2167,7 +2167,8 @@
           // Advance to the next operand.
           unsigned NumOps = 
             cast<ConstantSDNode>(AsmNodeOperands[CurOp])->getValue();
-          assert((NumOps & 7) == 2 /*REGDEF*/ &&
+          assert(((NumOps & 7) == 2 /*REGDEF*/ ||
+                  (NumOps & 7) == 4 /*MEM*/) &&
                  "Skipped past definitions?");
           CurOp += (NumOps>>3)+1;
         }






More information about the llvm-commits mailing list