diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-06-02 16:13:27 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-06-02 16:13:27 +0000 |
commit | fb3f4aad0436a9c40e9130598162150890c405b5 (patch) | |
tree | 1cb325b0d90dafe13a495af87e93674d06bdbe52 /lib/AST/Decl.cpp | |
parent | 3f828d1710df819c1dd84c4782166b10f8d18b56 (diff) |
Implement -fgnu89-inline. Fixes PR10041.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132460 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 81d976f4e8..1cad64e055 100644 --- a/lib/AST/Decl.cpp +++ b/lib/AST/Decl.cpp @@ -1743,7 +1743,7 @@ bool FunctionDecl::isInlineDefinitionExternallyVisible() const { assert(isInlined() && "Function must be inline"); ASTContext &Context = getASTContext(); - if (!Context.getLangOptions().C99 || hasAttr<GNUInlineAttr>()) { + if (Context.getLangOptions().GNUInline || hasAttr<GNUInlineAttr>()) { // If it's not the case that both 'inline' and 'extern' are // specified on the definition, then this inline definition is // externally visible. |