Skip to content

Commit d020f93

Browse files
committed
C++: This is never a definition.
1 parent 3e53f3b commit d020f93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ predicate nodeToDefOrUse(Node node, SourceVariable sv, IRBlock bb, int i, boolea
723723
*/
724724
private predicate indirectConversionFlowStep(Node nFrom, Node nTo) {
725725
not exists(SourceVariable sv, IRBlock bb2, int i2 |
726-
nodeToDefOrUse(nTo, sv, bb2, i2, _) and
726+
useToNode(bb2, i2, sv, nTo) and
727727
adjacentDefRead(bb2, i2, sv, _, _)
728728
) and
729729
exists(Operand op1, Operand op2, int indirectionIndex, Instruction instr |

0 commit comments

Comments
 (0)