diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-01-20 16:54:50 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-01-20 16:54:50 +0000 |
commit | 40f4e69002af9623a1f959bd57b99afda186a6a7 (patch) | |
tree | 6029b84009f87a489645bad524efd61aaf375f70 /lib/Sema/SemaDecl.cpp | |
parent | 6597f985156b3a24c0a9db1e01eeec85714c4a8d (diff) |
Rename DeclContext::insert to DeclContext::makeDeclVisibleInContext and document both it and DeclContext::addDecl properly
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62581 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r-- | lib/Sema/SemaDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index ec769a16f0..6f731ca548 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -800,7 +800,7 @@ bool Sema::InjectAnonymousStructOrUnionMembers(Scope *S, DeclContext *Owner, // definition, the members of the anonymous union are // considered to have been defined in the scope in which the // anonymous union is declared. - Owner->insert(*F); + Owner->makeDeclVisibleInContext(*F); S->AddDecl(*F); IdResolver.AddDecl(*F); } |