diff options
author | Dávid Bolvanský <david.bolvansky@gmail.com> | 2021-02-20 06:57:47 +0100 |
---|---|---|
committer | Dávid Bolvanský <david.bolvansky@gmail.com> | 2021-02-20 06:57:47 +0100 |
commit | ee51c42e0060fc98b499312e51a96bc7cf4bcc18 (patch) | |
tree | fd4249bf054a2e5b7d3de157587e0dd49a0a7ee7 /clang/lib/CodeGen/CGCall.cpp | |
parent | cd54c5791988ca5e80f0c08c4a27baef8dce205c (diff) | |
download | llvm-ee51c42e0060fc98b499312e51a96bc7cf4bcc18.zip llvm-ee51c42e0060fc98b499312e51a96bc7cf4bcc18.tar.gz llvm-ee51c42e0060fc98b499312e51a96bc7cf4bcc18.tar.bz2 |
Reduce the number of attributes attached to each function
This takes advantage of the implicit default behavior to reduce the number of
attributes.
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. |