mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Data flow: Fix a bad join order
This commit is contained in:
@@ -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`.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user