diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-07-07 20:25:10 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-07-07 20:25:10 +0000 |
commit | 2357aeec0da2740838963880edd97e43f14cb6fd (patch) | |
tree | b54cd95afed8b1fef6506a3b7ab8d7c75a6a608b /lib/AST/ASTContext.cpp | |
parent | c5f90c2250f20037e604e849044442d70573507e (diff) |
A redeclaration of an inline method in C99 mode should trigger emission of that
function. Fixes PR10233!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134634 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ASTContext.cpp')
-rw-r--r-- | lib/AST/ASTContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index e2fa4e504a..f2bd47dfa5 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -6376,7 +6376,7 @@ bool ASTContext::DeclMustBeEmitted(const Decl *D) { if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) { // Forward declarations aren't required. if (!FD->doesThisDeclarationHaveABody()) - return false; + return FD->doesDeclarationForceExternallyVisibleDefinition(); // Constructors and destructors are required. if (FD->hasAttr<ConstructorAttr>() || FD->hasAttr<DestructorAttr>()) |