mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #76464 from kubamracek/embedded-fix-generics-check-in-perfdiags
[embedded] Fix generic function skipping in PerfDiags, diagnose KeyPathInsts in closures
This commit is contained in:
@@ -203,7 +203,7 @@ bool PerformanceDiagnostics::visitFunctionEmbeddedSwift(
|
||||
SILFunction *function, LocWithParent *parentLoc) {
|
||||
// Don't check generic functions in embedded Swift, they're about to be
|
||||
// removed anyway.
|
||||
if (function->getLoweredFunctionType()->getSubstGenericSignature())
|
||||
if (function->isGeneric())
|
||||
return false;
|
||||
|
||||
if (!function->isDefinition())
|
||||
|
||||
Reference in New Issue
Block a user