diff options
Diffstat (limited to 'clang/lib/CodeGen/CGStmt.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CGStmt.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp index f84f6a630f3..794d7cb272a 100644 --- a/clang/lib/CodeGen/CGStmt.cpp +++ b/clang/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 = |

