summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ASTContext.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-03-24 05:22:00 +0000
committerJohn McCall <rjmccall@apple.com>2010-03-24 05:22:00 +0000
commitc62bb64c658a92504ec9d9a2c8335e941e67fa71 (patch)
treefa83a50f4d35591c59d9b38cb0e7cbba6fe598c8 /clang/lib/AST/ASTContext.cpp
parentbcf0a47e7ac17500de98dc13ef0d6ad1bcde2802 (diff)
downloadbcm5719-llvm-c62bb64c658a92504ec9d9a2c8335e941e67fa71.tar.gz
bcm5719-llvm-c62bb64c658a92504ec9d9a2c8335e941e67fa71.zip
Implement a framework for the delay of arbitrary diagnostics within
templates. So delay access-control diagnostics when (for example) the target of a friend declaration is a specific specialization of a template. I was surprised to find that this was required for an access-controlled selfhost. llvm-svn: 99383
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r--clang/lib/AST/ASTContext.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index fcc3e3d0c23..7f2e35b263b 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/lib/AST/ASTContext.cpp
@@ -45,7 +45,8 @@ ASTContext::ASTContext(const LangOptions& LOpts, SourceManager &SM,
sigjmp_bufDecl(0), BlockDescriptorType(0), BlockDescriptorExtendedType(0),
SourceMgr(SM), LangOpts(LOpts), FreeMemory(FreeMem), Target(t),
Idents(idents), Selectors(sels),
- BuiltinInfo(builtins), ExternalSource(0), PrintingPolicy(LOpts) {
+ BuiltinInfo(builtins), ExternalSource(0), PrintingPolicy(LOpts),
+ LastSDM(0, 0) {
ObjCIdRedefinitionType = QualType();
ObjCClassRedefinitionType = QualType();
ObjCSelRedefinitionType = QualType();
OpenPOWER on IntegriCloud