summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
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/CodeGen
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/CodeGen')
-rw-r--r--clang/lib/CodeGen/CodeGenTypes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenTypes.cpp b/clang/lib/CodeGen/CodeGenTypes.cpp
index d9c9cb13368..ff89341ddc5 100644
--- a/clang/lib/CodeGen/CodeGenTypes.cpp
+++ b/clang/lib/CodeGen/CodeGenTypes.cpp
@@ -392,7 +392,7 @@ const llvm::Type *CodeGenTypes::ConvertTagDeclType(const TagDecl *TD) {
} else if (TD->isUnion()) {
// Just use the largest element of the union, breaking ties with the
// highest aligned member.
- if (RD->field_begin() != RD->field_end()) {
+ if (!RD->field_empty()) {
RecordOrganizer RO(*this, *RD);
RO.layoutUnionFields(Context.getASTRecordLayout(RD));
OpenPOWER on IntegriCloud