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 | 28ad4b5da1c56d7aa10399f83699657d23498d66 (patch) | |
tree | 4636b32bf63b0ef24359e32c666d665bf0418888 /clang/lib/Sema/SemaTemplateInstantiateDecl.cpp | |
parent | bee70bd1e7d7ff6d5ff371811c7095aa90fa99e0 (diff) | |
download | bcm5719-llvm-28ad4b5da1c56d7aa10399f83699657d23498d66.tar.gz bcm5719-llvm-28ad4b5da1c56d7aa10399f83699657d23498d66.zip |
Make sure that CodeGen sees template instantiations.
llvm-svn: 72433
Diffstat (limited to 'clang/lib/Sema/SemaTemplateInstantiateDecl.cpp')
-rw-r--r-- | clang/lib/Sema/SemaTemplateInstantiateDecl.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp index b9a9ae8c50a..90c86ec57e6 100644 --- a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp +++ b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp @@ -10,6 +10,7 @@ // //===----------------------------------------------------------------------===/ #include "Sema.h" +#include "clang/AST/ASTConsumer.h" #include "clang/AST/ASTContext.h" #include "clang/AST/DeclTemplate.h" #include "clang/AST/DeclVisitor.h" @@ -622,6 +623,9 @@ void Sema::InstantiateFunctionDefinition(SourceLocation PointOfInstantiation, /*IsInstantiation=*/true); CurContext = PreviousContext; + + DeclGroupRef DG(Function); + Consumer.HandleTopLevelDecl(DG); } /// \brief Instantiate the definition of the given variable from its |