Skip to content

Commit a2c29fe

Browse files
committed
Shared: nomagicify 'getASourceSupertype'.
1 parent 3f69678 commit a2c29fe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

shared/typeflow/codeql/typeflow/internal/TypeFlowImpl.qll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ module TypeFlow<LocationSig Location, TypeFlowInput<Location> I> {
1919
* Holds if data can flow from `n1` to `n2` in one step, `n1` is not necessarily
2020
* functionally determined by `n2`, and `n1` might take a non-null value.
2121
*/
22-
private predicate joinStep(TypeFlowNode n1, TypeFlowNode n2) { I::joinStep(n1, n2) and not isNull(n1) }
22+
private predicate joinStep(TypeFlowNode n1, TypeFlowNode n2) {
23+
I::joinStep(n1, n2) and not isNull(n1)
24+
}
2325

2426
private predicate anyStep(TypeFlowNode n1, TypeFlowNode n2) { joinStep(n1, n2) or step(n1, n2) }
2527

@@ -184,6 +186,7 @@ module TypeFlow<LocationSig Location, TypeFlowInput<Location> I> {
184186
/**
185187
* Gets the source declaration of a direct supertype of this type, excluding itself.
186188
*/
189+
pragma[nomagic]
187190
private Type getASourceSupertype(Type t) {
188191
result = getSourceDeclaration(t.getASupertype()) and
189192
result != t

0 commit comments

Comments
 (0)