diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-10-27 21:11:48 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-10-27 21:11:48 +0000 |
commit | 583dcafce43f5249c808af1e65cb321489549b0b (patch) | |
tree | 2654ef8fe4495d6c5136e14dcf67afe2d1fe2df1 /clang/lib/Sema | |
parent | e4801f7844bbdac6345870a2dbb8d682398f6e05 (diff) | |
download | bcm5719-llvm-583dcafce43f5249c808af1e65cb321489549b0b.tar.gz bcm5719-llvm-583dcafce43f5249c808af1e65cb321489549b0b.zip |
Introduce FunctionDecl::isInlined() to tell whether a function should
be inlined.
llvm-svn: 85307
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r-- | clang/lib/Sema/SemaTemplateInstantiateDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp index 290df948616..17b99bca952 100644 --- a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp +++ b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp @@ -1127,7 +1127,7 @@ void Sema::InstantiateFunctionDefinition(SourceLocation PointOfInstantiation, // to which they refer. if (Function->getTemplateSpecializationKind() == TSK_ExplicitInstantiationDeclaration && - PatternDecl->isOutOfLine() && !PatternDecl->isInlineSpecified()) + !PatternDecl->isInlined()) return; InstantiatingTemplate Inst(*this, PointOfInstantiation, Function); |