diff options
Diffstat (limited to 'lib/AST/Decl.cpp')
-rw-r--r-- | lib/AST/Decl.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/AST/Decl.cpp b/lib/AST/Decl.cpp index 986430595b..2987e7c276 100644 --- a/lib/AST/Decl.cpp +++ b/lib/AST/Decl.cpp @@ -1761,6 +1761,9 @@ bool FunctionDecl::isReservedGlobalPlacementOperator() const { } bool FunctionDecl::hasCLanguageLinkage() const { + if (getBuiltinID()) + return true; + return hasCLanguageLinkageTemplate(*this); } |