Skip to content

Commit 43a4795

Browse files
committed
C++: Remove redundant conjunct.
1 parent 1f89b49 commit 43a4795

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/SsaInternals.qll

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,7 @@ private class DefOrUse extends TDefOrUse {
7676

7777
/** Holds if this definition or use has rank `rank` in block `block`. */
7878
cached
79-
final predicate hasRankInBlock(IRBlock block, int rnk) {
80-
block = getBlock() and
81-
rnk = getRank(this, block)
82-
}
79+
final predicate hasRankInBlock(IRBlock block, int rnk) { rnk = getRank(this, block) }
8380

8481
/** Gets the location of this element. */
8582
abstract Cpp::Location getLocation();

0 commit comments

Comments
 (0)