Skip to content

Commit 4ca259b

Browse files
committed
C++: Non-exact definitions should always be a use.
1 parent b092da4 commit 4ca259b

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)