Skip to content

Commit e2e91eb

Browse files
committed
Fix capitalization in predicate name
This was introduced by a copy-paste error
1 parent dfd25f7 commit e2e91eb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

go/ql/lib/semmle/go/controlflow/ControlFlowGraphImpl.qll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1459,7 +1459,7 @@ module CFG {
14591459
// `defer` can be the first `defer` statement executed
14601460
// there is always a predecessor node because the `defer`'s call is always
14611461
// evaluated before the defer statement itself
1462-
MkDeferNode(defer) = succ0(notDefersucc0*(this.getEntry()))
1462+
MkDeferNode(defer) = succ0(notDeferSucc0*(this.getEntry()))
14631463
)
14641464
}
14651465

@@ -1492,7 +1492,7 @@ module CFG {
14921492
exists(Completion cmpl |
14931493
lastNode(this.getBody(), pred, cmpl) and
14941494
// last node of function body can be reached without going through a `defer` statement
1495-
pred = notDefersucc0*(this.getEntry())
1495+
pred = notDeferSucc0*(this.getEntry())
14961496
|
14971497
// panic goes directly to exit, non-panic reads result variables first
14981498
if cmpl = Panic() then succ = MkExitNode(this) else succ = this.getEpilogueNode(0)
@@ -1502,7 +1502,7 @@ module CFG {
15021502
exists(DeferStmt defer | defer = this.getADeferStmt() |
15031503
succ = MkExprNode(defer.getCall()) and
15041504
// the last `DeferStmt` executed before pred is this `defer`
1505-
pred = notDefersucc0*(MkDeferNode(defer))
1505+
pred = notDeferSucc0*(MkDeferNode(defer))
15061506
)
15071507
or
15081508
exists(DeferStmt predDefer, DeferStmt succDefer |
@@ -2066,7 +2066,7 @@ module CFG {
20662066
}
20672067

20682068
/** Gets a successor of `nd` that is not a `defer` node */
2069-
private ControlFlow::Node notDefersucc0(ControlFlow::Node nd) {
2069+
private ControlFlow::Node notDeferSucc0(ControlFlow::Node nd) {
20702070
not result = MkDeferNode(_) and
20712071
result = succ0(nd)
20722072
}
@@ -2078,7 +2078,7 @@ module CFG {
20782078
(
20792079
result = succ0(nd)
20802080
or
2081-
result = succ0(notDefersucc0+(nd))
2081+
result = succ0(notDeferSucc0+(nd))
20822082
)
20832083
}
20842084

0 commit comments

Comments
 (0)