aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CGCall.cpp
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2022-04-16 00:18:48 -0700
committerVitaly Buka <vitalybuka@google.com>2022-04-16 00:27:51 -0700
commite75d8b70370435b0ad10388afba0df45fcf9bfcc (patch)
tree5a0fd5f08c473f85aa87e4b38e83a9418d993eea /clang/lib/CodeGen/CGCall.cpp
parent709868707ca76002f3dc858e2300d3ca13eaf409 (diff)
downloadllvm-e75d8b70370435b0ad10388afba0df45fcf9bfcc.zip
llvm-e75d8b70370435b0ad10388afba0df45fcf9bfcc.tar.gz
llvm-e75d8b70370435b0ad10388afba0df45fcf9bfcc.tar.bz2
Revert "Treat `std::move`, `forward`, and `move_if_noexcept` as builtins."
Revert "Extend support for std::move etc to also cover std::as_const and" Revert "Update test to handle opaque pointers flag flip." It crashes on libcxx tests https://lab.llvm.org/buildbot/#/builders/85/builds/8174 This reverts commit fc3090109643af8d2da9822d0f99c84742b9c877. This reverts commit a571f82a50416b767fd3cce0fb5027bb5dfec58c. This reverts commit 64c045e25b8471bbb572bd29159c294a82a86a25.
Diffstat (limited to 'clang/lib/CodeGen/CGCall.cpp')
-rw-r--r--clang/lib/CodeGen/CGCall.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp
index d69455d..e6a5fd1 100644
--- a/clang/lib/CodeGen/CGCall.cpp
+++ b/clang/lib/CodeGen/CGCall.cpp
@@ -1805,8 +1805,6 @@ void CodeGenModule::getDefaultFunctionAttributes(StringRef Name,
if (AttrOnCallSite) {
// Attributes that should go on the call site only.
- // FIXME: Look for 'BuiltinAttr' on the function rather than re-checking
- // the -fno-builtin-foo list.
if (!CodeGenOpts.SimplifyLibCalls || LangOpts.isNoBuiltinFunc(Name))
FuncAttrs.addAttribute(llvm::Attribute::NoBuiltin);
if (!CodeGenOpts.TrapFuncName.empty())