diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-10-11 16:32:25 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-10-11 16:32:25 +0000 |
commit | 0142f0cf0859c1622f66edaaaafddcdfb8918376 (patch) | |
tree | b837c4b6df1864011c9498115639715f7ef91c69 /lib/AST/Decl.cpp | |
parent | b5cd1220dd650a358622241237aa595c5d675506 (diff) |
Handle gnu_inline in c++ in a gcc compatible way. Original patch by Tobias
Grosser.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165720 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Decl.cpp')
-rw-r--r-- | lib/AST/Decl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/Decl.cpp b/lib/AST/Decl.cpp index c34d78c8a4..fea81cf2c4 100644 --- a/lib/AST/Decl.cpp +++ b/lib/AST/Decl.cpp @@ -193,7 +193,7 @@ static bool useInlineVisibilityHidden(const NamedDecl *D) { // anyway. return TSK != TSK_ExplicitInstantiationDeclaration && TSK != TSK_ExplicitInstantiationDefinition && - FD->hasBody(Def) && Def->isInlined(); + FD->hasBody(Def) && Def->isInlined() && !Def->hasAttr<GNUInlineAttr>(); } static LinkageInfo getLVForNamespaceScopeDecl(const NamedDecl *D, |