Skip to content

Commit 8c610e4

Browse files
committed
C++: Don't use deprecated interface in test
1 parent b98d637 commit 8c610e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/test/library-tests/sub_basic_blocks/sbb_test.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ string subBasicBlockDebugInfo(SubBasicBlock sbb) {
66
" [line " + sbb.getStart().getLocation().getStartLine() + "-" +
77
sbb.getEnd().getLocation().getEndLine() + ", " +
88
sbb.getNumberOfNodes() + " nodes, " +
9-
"pos " + sbb.getPosInBasicBlock(_) +
9+
"pos " + (sbb.getRankInBasicBlock(_) - 1) +
1010
any(string s | if sbb.firstInBB() then s = " (first in BB)" else s = "") +
1111
any(string s | if sbb.lastInBB() then s = " (last in BB)" else s = "") +
1212
", " +

0 commit comments

Comments
 (0)