aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/CodeGen/CGStmt.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/CGStmt.cpp b/lib/CodeGen/CGStmt.cpp
index f84f6a630f..794d7cb272 100644
--- a/lib/CodeGen/CGStmt.cpp
+++ b/lib/CodeGen/CGStmt.cpp
@@ -1004,10 +1004,11 @@ void CodeGenFunction::EmitAsmStmt(const AsmStmt &S) {
}
// Add machine specific clobbers
- if (const char *C = Target.getClobbers()) {
+ std::string MachineClobbers = Target.getClobbers();
+ if (!MachineClobbers.empty()) {
if (!Constraints.empty())
Constraints += ',';
- Constraints += C;
+ Constraints += MachineClobbers;
}
const llvm::FunctionType *FTy =