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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rC Clang
Event Timeline
Comment Actions
lgtm with a comment (and perhaps an assertion).
clang/lib/CodeGen/CGVTables.cpp | ||
---|---|---|
777 | Give it a comment pointing out the importance of doing this after createVTableInitializer rather than before. |
Give it a comment pointing out the importance of doing this after createVTableInitializer rather than before.
If there's an easy way to add an "assert(is defined)" before setGVProperties to go with the comment, do that too.