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
diff --git a/lib/CodeGen/CGStmt.cpp b/lib/CodeGen/CGStmt.cpp
index 5b17b7b..2361c4a 100644
--- a/lib/CodeGen/CGStmt.cpp
+++ b/lib/CodeGen/CGStmt.cpp
@@ -917,8 +917,8 @@
else
InOutConstraints += OutputConstraint;
- InOutArgTypes.push_back(Arg->getType());
- InOutArgs.push_back(Arg);
+ InOutArgTypes.push_back(Dest.getAddress()->getType());
+ InOutArgs.push_back(Dest.getAddress());
}
}