diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-01-08 20:48:26 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-01-08 20:48:26 +0000 |
commit | c8938e09ca078a0958eafa27b83ef1da6cb4173c (patch) | |
tree | f570697ac785310f18c1b16b706ce2bbf2c6ad84 /clang | |
parent | 48ed48212dd66a2bd1722cd8e3a8069a7d96bc9e (diff) | |
download | bcm5719-llvm-c8938e09ca078a0958eafa27b83ef1da6cb4173c.tar.gz bcm5719-llvm-c8938e09ca078a0958eafa27b83ef1da6cb4173c.zip |
Remove double-insertion of EnumConstantDecls. Thanks to Zhongxing Xu for pointing this out
llvm-svn: 61942
Diffstat (limited to 'clang')
-rw-r--r-- | clang/lib/Sema/SemaDecl.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index c6e4336a3dc..d9436ebdc7f 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/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; } |