diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-08-24 21:25:37 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-08-24 21:25:37 +0000 |
commit | d9ba5a48cdddf332d3ccb6806c0c9ea03dcea099 (patch) | |
tree | 6d780cce8bc484453e0407ac085d55d0fc15dd8c /lib/Sema/SemaTemplateInstantiate.cpp | |
parent | 5fcbbd604f20ee02cd29a879d17ca78ab171905c (diff) |
PR29097: add an update record when we instantiate the default member
initializer of an imported field.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@279667 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 7e02586e21..4749962d04 100644 --- a/lib/Sema/SemaTemplateInstantiate.cpp +++ b/lib/Sema/SemaTemplateInstantiate.cpp @@ -15,6 +15,7 @@ #include "clang/AST/ASTConsumer.h" #include "clang/AST/ASTContext.h" #include "clang/AST/ASTLambda.h" +#include "clang/AST/ASTMutationListener.h" #include "clang/AST/DeclTemplate.h" #include "clang/AST/Expr.h" #include "clang/Basic/LangOptions.h" @@ -2215,6 +2216,9 @@ bool Sema::InstantiateInClassInitializer( ActOnFinishCXXInClassMemberInitializer( Instantiation, Init ? Init->getLocStart() : SourceLocation(), Init); + if (auto *L = getASTMutationListener()) + L->DefaultMemberInitializerInstantiated(Instantiation); + // Exit the scope of this instantiation. SavedContext.pop(); |