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 | 0da5ac8499d2710b7ff792fff46edce6238e4972 (patch) | |
tree | db16384ba7e50a4519f3176859859538442e9b10 /clang/lib/Sema/SemaDecl.cpp | |
parent | a908b60fb2523bde61f79b12667dd8f11eb161f6 (diff) | |
download | bcm5719-llvm-0da5ac8499d2710b7ff792fff46edce6238e4972.tar.gz bcm5719-llvm-0da5ac8499d2710b7ff792fff46edce6238e4972.zip |
Rename DeclContext::insert to DeclContext::makeDeclVisibleInContext and document both it and DeclContext::addDecl properly
llvm-svn: 62581
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index ec769a16f0f..6f731ca5480 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/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); } |