]> granicus.if.org Git - clang/commit
Don't cache the visibility of types.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 27 Feb 2013 04:15:01 +0000 (04:15 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 27 Feb 2013 04:15:01 +0000 (04:15 +0000)
commita2bb8923334ecd35b8f914dff7d105330abbad22
tree6faebdffbd5d8d723161abbaf61c7806a3411594
parent5e8577ece79b5ed07b0ab4dcb284a26076efdf65
Don't cache the visibility of types.

Since r175326 an implicitly hidden template argument can cause a template
installation to become hidden, even if the template itself has an explicit
default visibility. This requires that we keep track of "late" additions
of the visibility attribute.

This is hopefully the last followup change. It just removes the caching of
visibilities from types so that we can see new attributes even after a type has
been used.

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