From 7a4fad1b0b86fd2a6c770f010ef6148ead8fa4c7 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Thu, 11 Dec 2008 20:41:00 +0000 Subject: Address some comments on the name lookup/DeclContext patch from Chris llvm-svn: 60897 --- clang/lib/AST/ASTContext.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/lib/AST/ASTContext.cpp') diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index e62920f631f..1647e757e3f 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -539,6 +539,7 @@ const ASTRecordLayout &ASTContext::getASTRecordLayout(const RecordDecl *D) { ASTRecordLayout *NewEntry = new ASTRecordLayout(); Entry = NewEntry; + // FIXME: Avoid linear walk through the fields, if possible. NewEntry->InitializeLayout(std::distance(D->field_begin(), D->field_end())); bool IsUnion = D->isUnion(); -- cgit v1.2.3