Skip to content

Commit b6cf64c

Browse files
committed
C++: simplify TranslatedBlock::getLastChild
1 parent 7d8872b commit b6cf64c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedStmt.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ class TranslatedBlock extends TranslatedStmt {
674674
}
675675

676676
override TranslatedElement getLastChild() {
677-
not this.isEmpty() and result = this.getStmt(this.getStmtCount() - 1)
677+
result = this.getStmt(this.getStmtCount() - 1)
678678
}
679679

680680
private predicate isEmpty() { not exists(stmt.getStmt(0)) }

0 commit comments

Comments
 (0)