]> granicus.if.org Git - clang/commit
[CodeGen] Set construction vtable visibility after creating initializer
authorPetr Hosek <phosek@chromium.org>
Mon, 11 Feb 2019 20:13:42 +0000 (20:13 +0000)
committerPetr Hosek <phosek@chromium.org>
Mon, 11 Feb 2019 20:13:42 +0000 (20:13 +0000)
commitb72beebc7280d5ec2688cad5b1f476d8eac5a216
treee6c46854e976ddd8390aa302af4ff38930bd7e8f
parent47d8247c07da560e693976d3353d87b107bb39ee
[CodeGen] Set construction vtable visibility after creating initializer

We must only set the construction vtable visibility after we create the
vtable initializer, otherwise the global value will be treated as
declaration rather than definition and the visibility won't be set.

Differential Revision: https://reviews.llvm.org/D58010

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@353742 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGVTables.cpp
test/CodeGen/construction-vtable-visibility.cpp [new file with mode: 0644]