summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-07-20 19:02:21 +0000
committerChris Lattner <sabre@nondot.org>2006-07-20 19:02:21 +0000
commitb030532910c5ae9478330cbb87bce24cae7b6172 (patch)
tree9ed19dc15c9773cf099125d24fc49cb367204db4 /llvm/lib
parentedd2f9952ebf7b814dad0259196240a40c2902fb (diff)
downloadbcm5719-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.cpp3
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;
}
OpenPOWER on IntegriCloud