[cfe-commits] r62016 - /cfe/trunk/lib/Sema/SemaDecl.cpp
Douglas Gregor
dgregor at apple.com
Fri Jan 9 15:23:36 PST 2009
Author: dgregor
Date: Fri Jan 9 17:23:35 2009
New Revision: 62016
URL: http://llvm.org/viewvc/llvm-project?rev=62016&view=rev
Log:
Don't bother setting NextDeclarator for EnumConstantDecls. It isn't used
Modified:
cfe/trunk/lib/Sema/SemaDecl.cpp
Modified: cfe/trunk/lib/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=62016&r1=62015&r2=62016&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Fri Jan 9 17:23:35 2009
@@ -3616,7 +3616,6 @@
// Keep track of whether all elements have type int.
bool AllElementsInt = true;
- EnumConstantDecl *EltList = 0;
for (unsigned i = 0; i != NumElements; ++i) {
EnumConstantDecl *ECD =
cast_or_null<EnumConstantDecl>(static_cast<Decl*>(Elements[i]));
@@ -3646,9 +3645,6 @@
// Keep track of whether every enum element has type int (very commmon).
if (AllElementsInt)
AllElementsInt = ECD->getType() == Context.IntTy;
-
- ECD->setNextDeclarator(EltList);
- EltList = ECD;
}
// Figure out the type that should be used for this enum.
More information about the cfe-commits
mailing list