Skip to content

Commit d9b2a72

Browse files
committed
C++: Ensure that equiv instructions are in the same block.
1 parent 4602a8a commit d9b2a72

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cpp/ql/lib/experimental/semmle/code/cpp/semantic/SemanticExprSpecific.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ module SemanticExprConfig {
4646
(
4747
i1 = i2
4848
or
49-
i2 = safeConversion(i1.getAUse())
49+
i2 = safeConversion(i1.getAUse()) and
50+
i1.getBlock() = i2.getBlock()
5051
)
5152
}
5253

0 commit comments

Comments
 (0)