File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -515,6 +515,12 @@ class WorkloadImportsManager : public ModuleImportsManager {
515
515
<< " . This is unexpected. Are module paths passed to the "
516
516
" compiler unique for the modules passed to the linker?" );
517
517
GVS = *PotentialCandidates.begin ();
518
+ // We could in theory have multiple (interposable) copies of a symbol
519
+ // when there is no prevailing candidate, if say the prevailing copy was
520
+ // in a native object being linked in. However, we should in theory be
521
+ // marking all of these non-prevailing IR copies dead in that case, in
522
+ // which case they won't be candidates.
523
+ assert (GVS->isLive ());
518
524
} else {
519
525
assert (llvm::hasSingleElement (PrevailingCandidates));
520
526
GVS = *PrevailingCandidates.begin ();
You can’t perform that action at this time.
0 commit comments