summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/Decl.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@chromium.org>2020-01-17 12:51:06 +0100
committerHans Wennborg <hans@chromium.org>2020-01-17 12:51:06 +0100
commitb28326516ca3ad9d51688532e944f491ce8b7908 (patch)
tree328ef7c185679b25ed5fd913bbe2b59c00f86537 /clang/lib/AST/Decl.cpp
parent9007f06af0e009f41b876ae30e6b1ca96feee02e (diff)
downloadbcm5719-llvm-b28326516ca3ad9d51688532e944f491ce8b7908.tar.gz
bcm5719-llvm-b28326516ca3ad9d51688532e944f491ce8b7908.zip
Revert 9007f06af0e "Revert "Allow system header to provide their own implementation of some builtin""
This should no longer be necessary after cd4c65f91d5 "Add __warn_memset_zero_len builtin as a workaround for glibc issue"
Diffstat (limited to 'clang/lib/AST/Decl.cpp')
-rw-r--r--clang/lib/AST/Decl.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp
index be59d88b73f..0d30f64b992 100644
--- a/clang/lib/AST/Decl.cpp
+++ b/clang/lib/AST/Decl.cpp
@@ -3046,6 +3046,14 @@ bool FunctionDecl::isReplaceableGlobalAllocationFunction(bool *IsAligned) const
return Params == FPT->getNumParams();
}
+bool FunctionDecl::isInlineBuiltinDeclaration() const {
+ if (!getBuiltinID())
+ return false;
+
+ const FunctionDecl *Definition;
+ return hasBody(Definition) && Definition->isInlineSpecified();
+}
+
bool FunctionDecl::isDestroyingOperatorDelete() const {
// C++ P0722:
// Within a class C, a single object deallocation function with signature
OpenPOWER on IntegriCloud