Data flow: Fix a bad join order

This commit is contained in:
Tom Hvitved
2025-01-09 12:58:16 +01:00
parent ca05697365
commit 91b6a6573c

View File

@@ -595,12 +595,18 @@ module MakeImpl<LocationSig Location, InputSig<Location> Lang> {
} }
pragma[nomagic] pragma[nomagic]
private ReturnKindExtOption getDisallowedReturnKind(ParamNodeEx p) { private ReturnKindExtOption getDisallowedReturnKind0(ParamNodeEx p) {
if allowParameterReturnInSelfEx(p) if allowParameterReturnInSelfEx(p)
then result.isNone() then result.isNone()
else p.isParameterOf(_, result.asSome().(ParamUpdateReturnKind).getPosition()) else p.isParameterOf(_, result.asSome().(ParamUpdateReturnKind).getPosition())
} }
bindingset[p]
pragma[inline_late]
private ReturnKindExtOption getDisallowedReturnKind(ParamNodeEx p) {
result = getDisallowedReturnKind0(p)
}
/** /**
* Holds if an argument to `call` is reached in the flow covered by `fwdFlow`. * Holds if an argument to `call` is reached in the flow covered by `fwdFlow`.
*/ */