mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Change the invalidation kind for the generic specializer.
It adds functions, so technically it needs to invalidate more than just the function body.
This commit is contained in:
@@ -39,7 +39,7 @@ class GenericSpecializer : public SILFunctionTransform {
|
||||
<< " *****\n");
|
||||
|
||||
if (specializeAppliesInFunction(F))
|
||||
invalidateAnalysis(SILAnalysis::InvalidationKind::FunctionBody);
|
||||
invalidateAnalysis(SILAnalysis::InvalidationKind::Everything);
|
||||
}
|
||||
|
||||
StringRef getName() override { return "Generic Specializer"; }
|
||||
|
||||
Reference in New Issue
Block a user