diff options
author | Chris Lattner <sabre@nondot.org> | 2006-07-20 19:02:21 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-07-20 19:02:21 +0000 |
commit | b030532910c5ae9478330cbb87bce24cae7b6172 (patch) | |
tree | 9ed19dc15c9773cf099125d24fc49cb367204db4 /llvm/lib | |
parent | edd2f9952ebf7b814dad0259196240a40c2902fb (diff) | |
download | bcm5719-llvm-b030532910c5ae9478330cbb87bce24cae7b6172.tar.gz bcm5719-llvm-b030532910c5ae9478330cbb87bce24cae7b6172.zip |
Mems can be in the output list also. This is the second half of a fix for
PR833
llvm-svn: 29224
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 3968c38fa48..e8e7a4701fd 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -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; } |