summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ASTContext.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2011-07-07 20:25:10 +0000
committerNick Lewycky <nicholas@mxc.ca>2011-07-07 20:25:10 +0000
commitd755e6ac4828d6de90afca6eb64a7f90a33f603c (patch)
tree542db1ece629529322f3f0ab67dd11aee223ead4 /clang/lib/AST/ASTContext.cpp
parent77a9e6e7df7f38b9f0509c570df6fe3f7fa0eb7c (diff)
downloadbcm5719-llvm-d755e6ac4828d6de90afca6eb64a7f90a33f603c.tar.gz
bcm5719-llvm-d755e6ac4828d6de90afca6eb64a7f90a33f603c.zip
A redeclaration of an inline method in C99 mode should trigger emission of that
function. Fixes PR10233! llvm-svn: 134634
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r--clang/lib/AST/ASTContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index e2fa4e504a2..f2bd47dfa5f 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/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>())
OpenPOWER on IntegriCloud