Skip to content

Commit cbeff4e

Browse files
authored
Merge pull request #10693 from atorralba/atorralba/fix-guard-bad-magic
Java: Fixes bad magic in `Guard::guardControls_v3`
2 parents 0e6735b + 527425b commit cbeff4e

File tree

1 file changed

+1
-0
lines changed
  • java/ql/lib/semmle/code/java/controlflow

1 file changed

+1
-0
lines changed

java/ql/lib/semmle/code/java/controlflow/Guards.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ predicate guardControls_v2(Guard guard, BasicBlock controlled, boolean branch) {
232232
)
233233
}
234234

235+
pragma[nomagic]
235236
private predicate guardControls_v3(Guard guard, BasicBlock controlled, boolean branch) {
236237
guard.directlyControls(controlled, branch)
237238
or

0 commit comments

Comments
 (0)