move a todo

llvm-svn: 41528
This commit is contained in:
Chris Lattner 2007-08-28 05:10:31 +00:00
parent 14033fb5cb
commit 67933c0aae
1 changed files with 5 additions and 4 deletions

View File

@ -969,10 +969,6 @@ Sema::DeclTy *Sema::ParseEnumConstant(Scope *S, DeclTy *theEnumDecl,
}
}
// TODO: If the result value doesn't fit in an int, it must be a long or long
// long value. ISO C does not support this, but GCC does as an extension,
// emit a warning.
EnumConstantDecl *New = new EnumConstantDecl(IdLoc, Id, EltTy, Val, EnumVal,
LastEnumConst);
@ -988,6 +984,11 @@ void Sema::ParseEnumBody(SourceLocation EnumLoc, DeclTy *EnumDeclX,
EnumDecl *Enum = cast<EnumDecl>(static_cast<Decl*>(EnumDeclX));
assert(!Enum->isDefinition() && "Enum redefinitions can't reach here");
// TODO: If the result value doesn't fit in an int, it must be a long or long
// long value. ISO C does not support this, but GCC does as an extension,
// emit a warning.
// Verify that all the values are okay, and reverse the list.
EnumConstantDecl *EltList = 0;
for (unsigned i = 0; i != NumElements; ++i) {