aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/ASTContext.cpp
diff options
context:
space:
mode:
authorAnton Yartsev <anton.yartsev@gmail.com>2012-02-02 05:13:59 +0000
committerAnton Yartsev <anton.yartsev@gmail.com>2012-02-02 05:13:59 +0000
commit13f9f2fa548305c80241ccc1843369fd5964c888 (patch)
treefaa129cca49c2988212f4117a1228d35462d68cc /lib/AST/ASTContext.cpp
parent5f2987c11491edb186401d4e8eced275f0ea7c5e (diff)
Fix for PR10657 (http://llvm.org/bugs/show_bug.cgi?id=10657)
extern inline case considered git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149587 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ASTContext.cpp')
-rw-r--r--lib/AST/ASTContext.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp
index 295489f489..52a158fdf4 100644
--- a/lib/AST/ASTContext.cpp
+++ b/lib/AST/ASTContext.cpp
@@ -6673,7 +6673,9 @@ bool ASTContext::DeclMustBeEmitted(const Decl *D) {
// always be deferred. Normal inline functions can be deferred in C99/C++.
// Implicit template instantiations can also be deferred in C++.
if (Linkage == GVA_Internal || Linkage == GVA_C99Inline ||
- Linkage == GVA_CXXInline || Linkage == GVA_TemplateInstantiation)
+ Linkage == GVA_CXXInline ||
+ (Linkage == GVA_StrongExternal && FD->isInlineSpecified()) ||
+ Linkage == GVA_TemplateInstantiation)
return false;
return true;
}