aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-01-08 20:48:26 +0000
committerDouglas Gregor <dgregor@apple.com>2009-01-08 20:48:26 +0000
commit25553512a50e8c79fb1daae4b0398086be338554 (patch)
tree1ed056b340be1b73ec66618330323d2f9c367995 /lib/Sema/SemaDecl.cpp
parent7ed4faca5162b3ab85be7f7e57aa40e6ec170971 (diff)
Remove double-insertion of EnumConstantDecls. Thanks to Zhongxing Xu for pointing this out
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61942 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r--lib/Sema/SemaDecl.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp
index c6e4336a3d..d9436ebdc7 100644
--- a/lib/Sema/SemaDecl.cpp
+++ b/lib/Sema/SemaDecl.cpp
@@ -3530,11 +3530,6 @@ Sema::DeclTy *Sema::ActOnEnumConstant(Scope *S, DeclTy *theEnumDecl,
// Register this decl in the current scope stack.
PushOnScopeChains(New, S);
- // Add this enumerator into the enum itself.
- // FIXME: This means that the enumerator is stored in two
- // DeclContexts. This is not a long-term solution.
- New->setLexicalDeclContext(TheEnumDecl);
- TheEnumDecl->addDecl(Context, New, true);
return New;
}