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:
Mark Lacey
2015-12-22 23:19:44 -08:00
parent 75f2de5c79
commit 99d17a47f9

View File

@@ -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"; }