mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SpeculativeDevirtualizer: Make sure to link SILFunctions after speculative de-virtualization.
This makes sure that the pass de-serializes all always-emit-into-client functions.
This commit is contained in:
@@ -618,6 +618,8 @@ namespace {
|
||||
Changed |= tryToSpeculateTarget(AI, CHA, ORE);
|
||||
|
||||
if (Changed) {
|
||||
CurFn.getModule().linkFunction(&CurFn, SILModule::LinkingMode::LinkAll);
|
||||
|
||||
invalidateAnalysis(SILAnalysis::InvalidationKind::FunctionBody);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user