diff options
author | Douglas Gregor <dgregor@apple.com> | 2008-12-11 20:41:00 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2008-12-11 20:41:00 +0000 |
commit | e267ff35b2f4e9d2b0d8bf24109d41cc7398b61b (patch) | |
tree | 568838468f95906278ae3e3b1753e3ad21e58041 /lib/Sema/SemaInit.cpp | |
parent | 7415326dcbba6f333f5f7708ac1bf4982f3adb5a (diff) |
Address some comments on the name lookup/DeclContext patch from Chris
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60897 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaInit.cpp')
-rw-r--r-- | lib/Sema/SemaInit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaInit.cpp b/lib/Sema/SemaInit.cpp index f36d3a504f..031fe27ddf 100644 --- a/lib/Sema/SemaInit.cpp +++ b/lib/Sema/SemaInit.cpp @@ -41,7 +41,7 @@ int InitListChecker::numArrayElements(QualType DeclType) { int InitListChecker::numStructUnionElements(QualType DeclType) { RecordDecl *structDecl = DeclType->getAsRecordType()->getDecl(); - int InitializableMembers + const int InitializableMembers = std::count_if(structDecl->field_begin(), structDecl->field_end(), std::mem_fun(&FieldDecl::getDeclName)); if (structDecl->isUnion()) |