aboutsummaryrefslogtreecommitdiffstats
path: root/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
commita15cf7045efc688b813f4bc7cbc9f17c27114c04 (patch)
tree7ca2ec1d9a41fcade8ea783bef29fe8f754b2846 /lib
parentd828a4b285339a2ae7d97428b64016628d9ef6db (diff)
downloadexternal_llvm-a15cf7045efc688b813f4bc7cbc9f17c27114c04.zip
external_llvm-a15cf7045efc688b813f4bc7cbc9f17c27114c04.tar.gz
external_llvm-a15cf7045efc688b813f4bc7cbc9f17c27114c04.tar.bz2
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
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 3968c38..e8e7a47 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<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;
}