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]
private ReturnKindExtOption getDisallowedReturnKind(ParamNodeEx p) {
private ReturnKindExtOption getDisallowedReturnKind0(ParamNodeEx p) {
if allowParameterReturnInSelfEx(p)
then result.isNone()
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`.
*/