Skip to content

Commit 5cc2868

Browse files
committed
Kotlin: Report CFG dead end consistency issues on ErrorExpr
1 parent b8ef961 commit 5cc2868

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

java/ql/consistency-queries/cfgDeadEnds.ql

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ predicate shouldBeDeadEnd(ControlFlowNode n) {
5353
not exists(n.getFile().getRelativePath()) // TODO
5454
or
5555
n = any(ConstCase c).getValue(_) // TODO
56-
or
57-
n instanceof ErrorExpr // TODO
5856
}
5957

6058
from ControlFlowNode n, string s
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
| exprs.kt:278:52:278:66 | <error expr> | ErrorExpr | unexpected dead end |
12
| exprs.kt:278:52:278:66 | { ... } | BlockStmt | unexpected dead end |

0 commit comments

Comments
 (0)