Skip to content

Commit 4a89cbe

Browse files
committed
C#: Add postupdate nodes for arguments of struct type.
1 parent 4dfeff3 commit 4a89cbe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

csharp/ql/lib/semmle/code/csharp/dataflow/internal/DataFlowPrivate.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,8 @@ module LocalFlow {
540540
not t instanceof NullType
541541
or
542542
t = any(TypeParameter tp | not tp.isValueType())
543+
or
544+
t.(Struct).isRef()
543545
) and
544546
not exists(getALastEvalNode(result))
545547
}

0 commit comments

Comments
 (0)