summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2016-08-24 21:25:37 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2016-08-24 21:25:37 +0000
commit4b054b26652e1c614265976c6fcfd3ce3c45ad97 (patch)
tree86d3e16b287617be6b616c132d3f5229c8a69c15 /clang/lib/Sema
parenteedcd9c1ea4c98b97714bcc7fc4167fd4cb47b37 (diff)
downloadbcm5719-llvm-4b054b26652e1c614265976c6fcfd3ce3c45ad97.tar.gz
bcm5719-llvm-4b054b26652e1c614265976c6fcfd3ce3c45ad97.zip
PR29097: add an update record when we instantiate the default member
initializer of an imported field. llvm-svn: 279667
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r--clang/lib/Sema/SemaTemplateInstantiate.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaTemplateInstantiate.cpp b/clang/lib/Sema/SemaTemplateInstantiate.cpp
index 7e02586e217..4749962d045 100644
--- a/clang/lib/Sema/SemaTemplateInstantiate.cpp
+++ b/clang/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();
OpenPOWER on IntegriCloud