diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-05-26 20:50:29 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-05-26 20:50:29 +0000 |
commit | aba43bb13b3aa3e81990989375fba3a902bfe1c2 (patch) | |
tree | f0b11abaa42f4ef0c04da30b55b8663c0874bb4d /lib/Sema/SemaTemplateInstantiate.cpp | |
parent | ca308dfd9b2ded10458b95a980b0674896867ebb (diff) |
Make sure that CodeGen sees template instantiations.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72433 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplateInstantiate.cpp')
-rw-r--r-- | lib/Sema/SemaTemplateInstantiate.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Sema/SemaTemplateInstantiate.cpp b/lib/Sema/SemaTemplateInstantiate.cpp index a5b0911788..3c32a21073 100644 --- a/lib/Sema/SemaTemplateInstantiate.cpp +++ b/lib/Sema/SemaTemplateInstantiate.cpp @@ -11,6 +11,7 @@ //===----------------------------------------------------------------------===/ #include "Sema.h" +#include "clang/AST/ASTConsumer.h" #include "clang/AST/ASTContext.h" #include "clang/AST/Expr.h" #include "clang/AST/DeclTemplate.h" @@ -779,6 +780,9 @@ Sema::InstantiateClass(SourceLocation PointOfInstantiation, // Exit the scope of this instantiation. CurContext = PreviousContext; + if (!Invalid) + Consumer.HandleTagDeclDefinition(Instantiation); + // If this is an explicit instantiation, instantiate our members, too. if (!Invalid && ExplicitInstantiation) { Inst.Clear(); |