Add a comment/FIXME to an earlier change.

llvm-svn: 46947
This commit is contained in:
Steve Naroff 2008-02-11 02:42:07 +00:00
parent e78e2af754
commit 4b32796d1c
1 changed files with 5 additions and 1 deletions

View File

@ -527,7 +527,11 @@ bool Sema::CheckInitializerListTypes(InitListExpr*& IList, QualType &DeclType,
} else {
RecordDecl* structDecl = DeclType->getAsRecordType()->getDecl();
// If the record is invalid, it's members can't be trusted.
// If the record is invalid, it's members can't be trusted.
// FIXME: I'd like to "fix" this at a higher level. That is, we should
// never get here if the struct decl is invalid. Considering a
// change to Type::isIncompleteType(). Until this happens, the
// following check is certainly better than crashing.
if (structDecl->isInvalidDecl())
return true;