swift SIL: fix Function.isGeneric

It didn't work for functions in generic contexts, which don't add a generic parameter themselves
This commit is contained in:
Erik Eckstein
2024-01-31 17:13:22 +01:00
parent 3b239b25f3
commit 31f3102540
5 changed files with 6 additions and 6 deletions

View File

@@ -351,7 +351,7 @@ fileprivate struct FunctionWorklist {
}
mutating func addAllNonGenericFunctions(of moduleContext: ModulePassContext) {
for f in moduleContext.functions where !f.isGenericFunction {
for f in moduleContext.functions where !f.isGeneric {
pushIfNotVisited(f)
}
return