[cfe-commits] r61942 - /cfe/trunk/lib/Sema/SemaDecl.cpp

Douglas Gregor dgregor at apple.com
Thu Jan 8 12:48:27 PST 2009


Author: dgregor
Date: Thu Jan  8 14:48:26 2009
New Revision: 61942

URL: http://llvm.org/viewvc/llvm-project?rev=61942&view=rev
Log:
Remove double-insertion of EnumConstantDecls. Thanks to Zhongxing Xu for pointing this out

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=61942&r1=61941&r2=61942&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Thu Jan  8 14:48:26 2009
@@ -3530,11 +3530,6 @@
   // 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;
 }
 





More information about the cfe-commits mailing list