summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ASTContext.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2008-12-11 20:41:00 +0000
committerDouglas Gregor <dgregor@apple.com>2008-12-11 20:41:00 +0000
commit7a4fad1b0b86fd2a6c770f010ef6148ead8fa4c7 (patch)
tree56e7314c6299ee31231bb620129f3222b8fd63e6 /clang/lib/AST/ASTContext.cpp
parent67ab296d5c029d3b410ffbc0d7a6e7cfcee17c3e (diff)
downloadbcm5719-llvm-7a4fad1b0b86fd2a6c770f010ef6148ead8fa4c7.tar.gz
bcm5719-llvm-7a4fad1b0b86fd2a6c770f010ef6148ead8fa4c7.zip
Address some comments on the name lookup/DeclContext patch from Chris
llvm-svn: 60897
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r--clang/lib/AST/ASTContext.cpp1
1 files changed, 1 insertions, 0 deletions
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();
OpenPOWER on IntegriCloud