mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user