Even more inline asm codegen fixes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46784 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/CodeGen/CGStmt.cpp b/CodeGen/CGStmt.cpp
index 557588e..5ef8b96 100644
--- a/CodeGen/CGStmt.cpp
+++ b/CodeGen/CGStmt.cpp
@@ -749,9 +749,12 @@
Clobber = Target.getNormalizedGCCRegisterName(Clobber.c_str());
- if (i != 0)
+ if (i != 0 || NumConstraints != 0)
Constraints += ',';
+
+ Constraints += "~{";
Constraints += Clobber;
+ Constraints += '}';
}
// Add machine specific clobbers