diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-06-14 23:41:45 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-06-14 23:41:45 +0000 |
commit | c66bcfd32b941d8008284ecae9d16d7d47c96b0b (patch) | |
tree | 14bc681e854c4d1008b37a87b66b2414decf26da /lib/CodeGen/CGVTables.cpp | |
parent | 56079f7dde1d9c9e16207feffa3f1f888a78ab69 (diff) |
Make sure to set the visible on a vtable; VTTs and typeinfo already
handle visibility properly. Fixes <rdar://problem/8091955>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105977 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGVTables.cpp')
-rw-r--r-- | lib/CodeGen/CGVTables.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/CGVTables.cpp b/lib/CodeGen/CGVTables.cpp index 9d8ab5adb0..6abac2609f 100644 --- a/lib/CodeGen/CGVTables.cpp +++ b/lib/CodeGen/CGVTables.cpp @@ -2926,6 +2926,9 @@ CodeGenVTables::EmitVTableDefinition(llvm::GlobalVariable *VTable, // Set the correct linkage. VTable->setLinkage(Linkage); + + // Set the right visibility. + CGM.setGlobalVisibility(VTable, RD); } llvm::GlobalVariable * |