aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaAccess.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2010-04-23 03:41:35 +0000
committerAnders Carlsson <andersca@mac.com>2010-04-23 03:41:35 +0000
commit0e313bd4795c005f23c43f127039fd948c3e0bd9 (patch)
tree4fac909cc5f14aa163c6f27a4cc07cf46c5e4cba /lib/Sema/SemaAccess.cpp
parentf55e3fd5e316db2e9993b26255f727d00486b904 (diff)
Add another 'catch all' access diagnostic.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102169 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaAccess.cpp')
-rw-r--r--lib/Sema/SemaAccess.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Sema/SemaAccess.cpp b/lib/Sema/SemaAccess.cpp
index 14a693f5b6..30c53ed75a 100644
--- a/lib/Sema/SemaAccess.cpp
+++ b/lib/Sema/SemaAccess.cpp
@@ -1152,8 +1152,9 @@ Sema::AccessResult Sema::CheckConstructorAccess(SourceLocation UseLoc,
case InitializedEntity::EK_Member: {
const FieldDecl *Field = cast<FieldDecl>(Entity.getDecl());
- AccessEntity.setDiag(PDiag(diag::err_access_ctor_field)
- << Field->getDeclName() << Field->getType());
+ AccessEntity.setDiag(PDiag(diag::err_access_field)
+ << Field->getType()
+ << getSpecialMember(Constructor));
break;
}