diff options
author | Anders Carlsson <andersca@mac.com> | 2009-08-02 03:40:19 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-08-02 03:40:19 +0000 |
commit | 5a23264452fbf8ad3c65e0869fa902f7a0e918a1 (patch) | |
tree | 19718078355e3a0e2eb7a22f742f321fe8a67e2e /lib/CodeGen/CGStmt.cpp | |
parent | 637ec3237da533470fd14e64f7597934291467c7 (diff) |
Don't evaluate inout constraints twice. Fixes PR3800.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77854 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGStmt.cpp')
-rw-r--r-- | lib/CodeGen/CGStmt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/CGStmt.cpp b/lib/CodeGen/CGStmt.cpp index 5b17b7b900..2361c4a334 100644 --- a/lib/CodeGen/CGStmt.cpp +++ b/lib/CodeGen/CGStmt.cpp @@ -917,8 +917,8 @@ void CodeGenFunction::EmitAsmStmt(const AsmStmt &S) { else InOutConstraints += OutputConstraint; - InOutArgTypes.push_back(Arg->getType()); - InOutArgs.push_back(Arg); + InOutArgTypes.push_back(Dest.getAddress()->getType()); + InOutArgs.push_back(Dest.getAddress()); } } |