C++: Don't use deprecated interface in test

This commit is contained in:
Jonas Jensen
2019-08-28 08:31:05 +02:00
parent b98d6379e9
commit 8c610e4f68

View File

@@ -6,7 +6,7 @@ string subBasicBlockDebugInfo(SubBasicBlock sbb) {
" [line " + sbb.getStart().getLocation().getStartLine() + "-" +
sbb.getEnd().getLocation().getEndLine() + ", " +
sbb.getNumberOfNodes() + " nodes, " +
"pos " + sbb.getPosInBasicBlock(_) +
"pos " + (sbb.getRankInBasicBlock(_) - 1) +
any(string s | if sbb.firstInBB() then s = " (first in BB)" else s = "") +
any(string s | if sbb.lastInBB() then s = " (last in BB)" else s = "") +
", " +