Merge pull request #14103 from MathiasVP/non-certain-def-is-a-use

C++: Non-certain definitions should always be uses
This commit is contained in:
Mathias Vorreiter Pedersen
2023-08-31 16:15:30 +01:00
committed by GitHub

View File

@@ -108,7 +108,7 @@ private newtype TDefOrUseImpl =
} or
TUseImpl(BaseSourceVariableInstruction base, Operand operand, int indirectionIndex) {
isUse(_, operand, base, _, indirectionIndex) and
not isDef(_, _, operand, _, _, _)
not isDef(true, _, operand, _, _, _)
} or
TGlobalUse(GlobalLikeVariable v, IRFunction f, int indirectionIndex) {
// Represents a final "use" of a global variable to ensure that