summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp5
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;
}
OpenPOWER on IntegriCloud