From a948c34b0b0b492fc7ef082cb16d8d14b25317c6 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Sun, 11 Jan 2009 19:46:50 +0000 Subject: Handle readwrite constraints correctly llvm-svn: 62043 --- clang/lib/CodeGen/CGStmt.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'clang/lib/CodeGen/CGStmt.cpp') 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; } } -- cgit v1.2.3