Mems can be in the output list also. This is the second half of a fix for

PR833

llvm-svn: 29224
This commit is contained in:
Chris Lattner 2006-07-20 19:02:21 +00:00
parent cb3c26fa6a
commit 77e6cda5d0

View File

@ -2167,7 +2167,8 @@ void SelectionDAGLowering::visitInlineAsm(CallInst &I) {
// 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;
}