]> granicus.if.org Git - clang/commit
In mergeVisibility, if we already have an explicit visibility, keep it.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 19 Apr 2012 05:50:08 +0000 (05:50 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 19 Apr 2012 05:50:08 +0000 (05:50 +0000)
commitc7e606086a8d44c4e84ac3d47289288534c79bc6
tree3151eaf97133cc018c81b439e5fa599e7378c5cb
parent1c7eed7e6ea2b357aa94581a90018ddbdcb41cbf
In mergeVisibility, if we already have an explicit visibility, keep it.
This fixes the included testcase and lets us simplify the code a bit. It
does require using mergeWithMin when merging class information to its
members. Expand the comments to explain why that works.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155103 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Decl.h
lib/AST/Decl.cpp
test/CodeGenCXX/visibility.cpp