mirror of
https://github.com/github/codeql.git
synced 2025-12-22 19:56:32 +01:00
C++: Non-exact definitions should always be a use.
This commit is contained in:
@@ -108,7 +108,7 @@ private newtype TDefOrUseImpl =
|
|||||||
} or
|
} or
|
||||||
TUseImpl(BaseSourceVariableInstruction base, Operand operand, int indirectionIndex) {
|
TUseImpl(BaseSourceVariableInstruction base, Operand operand, int indirectionIndex) {
|
||||||
isUse(_, operand, base, _, indirectionIndex) and
|
isUse(_, operand, base, _, indirectionIndex) and
|
||||||
not isDef(_, _, operand, _, _, _)
|
not isDef(true, _, operand, _, _, _)
|
||||||
} or
|
} or
|
||||||
TGlobalUse(GlobalLikeVariable v, IRFunction f, int indirectionIndex) {
|
TGlobalUse(GlobalLikeVariable v, IRFunction f, int indirectionIndex) {
|
||||||
// Represents a final "use" of a global variable to ensure that
|
// Represents a final "use" of a global variable to ensure that
|
||||||
|
|||||||
Reference in New Issue
Block a user