Skip to content

Commit 6dad937

Browse files
committed
Use location of basic block for SsaImplicitDefinition
1 parent 052792f commit 6dad937

File tree

1 file changed

+1
-3
lines changed
  • go/ql/lib/semmle/go/dataflow

1 file changed

+1
-3
lines changed

go/ql/lib/semmle/go/dataflow/SSA.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,7 @@ abstract class SsaImplicitDefinition extends SsaDefinition {
217217
override predicate hasLocationInfo(
218218
string filepath, int startline, int startcolumn, int endline, int endcolumn
219219
) {
220-
endline = startline and
221-
endcolumn = startcolumn and
222-
this.getBasicBlock().hasLocationInfo(filepath, startline, startcolumn, _, _)
220+
this.getBasicBlock().hasLocationInfo(filepath, startline, startcolumn, endline, endcolumn)
223221
}
224222
}
225223

0 commit comments

Comments
 (0)