diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-02-23 13:43:43 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-02-23 13:50:02 +0100 |
| commit | 7a7c747c6f5f732d614cea2404386913e68981a0 (patch) | |
| tree | c62ec3f909aab845d7d5713e916034aeafae157e /prog/encodingexec.go | |
| parent | e229ac7779c82d5cdf27243e7699a2175c785f80 (diff) | |
pkg/compiler: allow unions as syscall arguments
If all union options can be syscall arguments,
allow the union itself as syscall argument.
Diffstat (limited to 'prog/encodingexec.go')
| -rw-r--r-- | prog/encodingexec.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/prog/encodingexec.go b/prog/encodingexec.go index 27fa63350..8ecec3a03 100644 --- a/prog/encodingexec.go +++ b/prog/encodingexec.go @@ -264,6 +264,8 @@ func (w *execContext) writeArg(arg Arg) { copy(w.buf, data) w.buf = w.buf[padded:] } + case *UnionArg: + w.writeArg(a.Option) default: panic("unknown arg type") } |
