Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -948,17 +948,17 @@ void llvm::updateVCallVisibilityInIndex(
// linker, as we have no information on their eventual use.
if (DynamicExportSymbols.count(P.first))
continue;
// With validation enabled, we want to exclude symbols visible to regular
// objects. Local symbols will be in this group due to the current
// implementation but those with VCallVisibilityTranslationUnit will have
// already been marked in clang so are unaffected.
if (VisibleToRegularObjSymbols.count(P.first))
continue;
for (auto &S : P.second.getSummaryList()) {
auto *GVar = dyn_cast<GlobalVarSummary>(S.get());
if (!GVar ||
GVar->getVCallVisibility() != GlobalObject::VCallVisibilityPublic)
continue;
// With validation enabled, we want to exclude symbols visible to regular
// objects. Local symbols will be in this group due to the current
// implementation but those with VCallVisibilityTranslationUnit will have
// already been marked in clang so are unaffected.
if (VisibleToRegularObjSymbols.count(P.first))
continue;
GVar->setVCallVisibility(GlobalObject::VCallVisibilityLinkageUnit);
}
}
Expand Down