summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-10-27 21:11:48 +0000
committerDouglas Gregor <dgregor@apple.com>2009-10-27 21:11:48 +0000
commit583dcafce43f5249c808af1e65cb321489549b0b (patch)
tree2654ef8fe4495d6c5136e14dcf67afe2d1fe2df1 /clang/lib/Sema
parente4801f7844bbdac6345870a2dbb8d682398f6e05 (diff)
downloadbcm5719-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.cpp2
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);
OpenPOWER on IntegriCloud