summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGStmt.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-01-11 19:46:50 +0000
committerAnders Carlsson <andersca@mac.com>2009-01-11 19:46:50 +0000
commita948c34b0b0b492fc7ef082cb16d8d14b25317c6 (patch)
tree9685b1ba9a8a7356c81435ee5ff283a82992e91b /clang/lib/CodeGen/CGStmt.cpp
parent03aaf11502f6f042db59cd3b444112c72572330f (diff)
downloadbcm5719-llvm-a948c34b0b0b492fc7ef082cb16d8d14b25317c6.tar.gz
bcm5719-llvm-a948c34b0b0b492fc7ef082cb16d8d14b25317c6.zip
Handle readwrite constraints correctly
llvm-svn: 62043
Diffstat (limited to 'clang/lib/CodeGen/CGStmt.cpp')
-rw-r--r--clang/lib/CodeGen/CGStmt.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp
index 8d80a498b45..bee40e5c28b 100644
--- a/clang/lib/CodeGen/CGStmt.cpp
+++ b/clang/lib/CodeGen/CGStmt.cpp
@@ -944,9 +944,10 @@ void CodeGenFunction::EmitAsmStmt(const AsmStmt &S) {
const Expr *InputExpr = S.getOutputExpr(i);
llvm::Value *Arg = EmitAsmInput(S, Info, InputExpr, InOutConstraints);
+ InOutConstraints += llvm::utostr(Args.size());
+
InOutArgTypes.push_back(Arg->getType());
InOutArgs.push_back(Arg);
- InOutConstraints += OutputConstraint;
}
}
OpenPOWER on IntegriCloud