Skip to content

Commit 10548b5

Browse files
authored
Merge pull request github#14103 from MathiasVP/non-certain-def-is-a-use
C++: Non-certain definitions should always be uses
2 parents cd590d3 + 4ca259b commit 10548b5

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
@@ -108,7 +108,7 @@ private newtype TDefOrUseImpl =
108108
} or
109109
TUseImpl(BaseSourceVariableInstruction base, Operand operand, int indirectionIndex) {
110110
isUse(_, operand, base, _, indirectionIndex) and
111-
not isDef(_, _, operand, _, _, _)
111+
not isDef(true, _, operand, _, _, _)
112112
} or
113113
TGlobalUse(GlobalLikeVariable v, IRFunction f, int indirectionIndex) {
114114
// Represents a final "use" of a global variable to ensure that

0 commit comments

Comments
 (0)