From: Chris Lattner Date: Thu, 20 Jul 2006 19:02:21 +0000 (+0000) Subject: Mems can be in the output list also. This is the second half of a fix for X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a15cf7045efc688b813f4bc7cbc9f17c27114c04;p=oota-llvm.git Mems can be in the output list also. This is the second half of a fix for PR833 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29224 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 3968c38fa48..e8e7a4701fd 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -2167,7 +2167,8 @@ void SelectionDAGLowering::visitInlineAsm(CallInst &I) { // Advance to the next operand. unsigned NumOps = cast(AsmNodeOperands[CurOp])->getValue(); - assert((NumOps & 7) == 2 /*REGDEF*/ && + assert(((NumOps & 7) == 2 /*REGDEF*/ || + (NumOps & 7) == 4 /*MEM*/) && "Skipped past definitions?"); CurOp += (NumOps>>3)+1; }