Skip to content

Commit e558c02

Browse files
authored
Merge pull request #20734 from aschackmull/csharp/tweak-nullness
C#: Allow nullness sources with SSA at entry.
2 parents 09378b8 + 5aa5328 commit e558c02

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

csharp/ql/lib/semmle/code/csharp/dataflow/Nullness.qll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,6 @@ private predicate defMaybeNull(
197197
msg = "as suggested by $@ null check" and
198198
node = def.getControlFlowNode() and
199199
not de = any(Ssa::PhiNode phi).getARead() and
200-
strictcount(Element e | e = any(Ssa::Definition def0 | de = def0.getARead()).getElement()) = 1 and
201200
// Don't use a check as reason if there is a `null` assignment
202201
// or argument
203202
not def.(Ssa::ExplicitDefinition).getADefinition().getSource() instanceof MaybeNullExpr and

0 commit comments

Comments
 (0)