Update PostUpdateNodes for implicit varargs slices

We don't want a post update node for the implicit varargs slice, and we
do want one for each argument which is stored in the implicit varargs
slice.
This commit is contained in:
Owen Mansel-Chan
2023-01-04 12:28:41 +00:00
parent 73b712a8c9
commit 3e73e02175

View File

@@ -732,7 +732,11 @@ module Public {
or
preupd = getAWrittenNode()
or
preupd instanceof ArgumentNode and
(
preupd instanceof ArgumentNode and not preupd instanceof ImplicitVarargsSlice
or
preupd = any(CallNode c).getImplicitVarargsArgument(_)
) and
mutableType(preupd.getType())
) and
(