summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-01-09 23:23:35 +0000
committerDouglas Gregor <dgregor@apple.com>2009-01-09 23:23:35 +0000
commit498b58ceb10c33c21a801f952c6dd8bfc086a2bb (patch)
tree9425f68237490e7c3761d728b783ccfa51cfbc78 /clang/lib/Sema
parented74d8ac2af5f8c9a2db4fa87e0579f92a045d18 (diff)
downloadbcm5719-llvm-498b58ceb10c33c21a801f952c6dd8bfc086a2bb.tar.gz
bcm5719-llvm-498b58ceb10c33c21a801f952c6dd8bfc086a2bb.zip
Don't bother setting NextDeclarator for EnumConstantDecls. It isn't used
llvm-svn: 62016
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index 39b9c787cf8..5e285b07b91 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -3616,7 +3616,6 @@ void Sema::ActOnEnumBody(SourceLocation EnumLoc, DeclTy *EnumDeclX,
// 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 @@ void Sema::ActOnEnumBody(SourceLocation EnumLoc, DeclTy *EnumDeclX,
// 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.
OpenPOWER on IntegriCloud