From e37f0be1fdb7e44f688c32ef36dfe09db3ce0500 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 28 Aug 2007 05:10:31 +0000 Subject: [PATCH] move a todo git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41528 91177308-0d34-0410-b5e6-96231b3b80d8 --- Sema/SemaDecl.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Sema/SemaDecl.cpp b/Sema/SemaDecl.cpp index 43d2ca9ec1..5ab40ec28f 100644 --- a/Sema/SemaDecl.cpp +++ b/Sema/SemaDecl.cpp @@ -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(static_cast(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) { -- 2.40.0