Skip to content

Commit 759f058

Browse files
committed
Use location of first node for BasicBlock
1 parent 1b2d842 commit 759f058

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,7 @@ class BasicBlock extends TControlFlowNode {
124124
predicate hasLocationInfo(
125125
string filepath, int startline, int startcolumn, int endline, int endcolumn
126126
) {
127-
this.getFirstNode().hasLocationInfo(filepath, startline, startcolumn, _, _) and
128-
this.getLastNode().hasLocationInfo(_, _, _, endline, endcolumn)
127+
this.getFirstNode().hasLocationInfo(filepath, startline, startcolumn, endline, endcolumn)
129128
}
130129
}
131130

0 commit comments

Comments
 (0)