diff options
author | Anders Carlsson <andersca@mac.com> | 2009-08-04 18:18:36 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-08-04 18:18:36 +0000 |
commit | fca9361839ecc53224c764517e62fc0e15166004 (patch) | |
tree | a874d131e73b4e6579c1cc6ee3e41b52012ac502 /lib/CodeGen/CGStmt.cpp | |
parent | 8d8bc9157fccab6a4089c41cdad9e12045edd736 (diff) |
Revert the fix for PR3800, it broke things.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78084 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGStmt.cpp')
-rw-r--r-- | lib/CodeGen/CGStmt.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/CodeGen/CGStmt.cpp b/lib/CodeGen/CGStmt.cpp index f4bc5afd09..5b17b7b900 100644 --- a/lib/CodeGen/CGStmt.cpp +++ b/lib/CodeGen/CGStmt.cpp @@ -909,13 +909,16 @@ void CodeGenFunction::EmitAsmStmt(const AsmStmt &S) { if (Info.isReadWrite()) { InOutConstraints += ','; + const Expr *InputExpr = S.getOutputExpr(i); + llvm::Value *Arg = EmitAsmInput(S, Info, InputExpr, InOutConstraints); + if (Info.allowsRegister()) InOutConstraints += llvm::utostr(i); else InOutConstraints += OutputConstraint; - InOutArgTypes.push_back(Dest.getAddress()->getType()); - InOutArgs.push_back(Dest.getAddress()); + InOutArgTypes.push_back(Arg->getType()); + InOutArgs.push_back(Arg); } } |