diff options
Diffstat (limited to 'clang/lib/CodeGen/CGCall.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGCall.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp index 992e873..4ea7076 100644 --- a/clang/lib/CodeGen/CGCall.cpp +++ b/clang/lib/CodeGen/CGCall.cpp @@ -2116,8 +2116,8 @@ void CodeGenModule::ConstructAttributeList( return false; }; - FuncAttrs.addAttribute("disable-tail-calls", - llvm::toStringRef(shouldDisableTailCalls())); + if (shouldDisableTailCalls()) + FuncAttrs.addAttribute("disable-tail-calls", "true"); // CPU/feature overrides. addDefaultFunctionDefinitionAttributes // handles these separately to set them based on the global defaults. |