diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2021-10-07 14:04:54 +0000 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2021-10-07 16:34:10 +0200 |
| commit | 620352409e47ec27a68a97e08b5786e27035ce31 (patch) | |
| tree | 1b1fc530e32fe0a13053acf471e2c560f74a6a34 /prog/decodeexec.go | |
| parent | 62ee098758aa41a10767827625d32a871279eec9 (diff) | |
prog/decodeexec.go: properly handle call props before no-copyin calls
If a call having non-default call props is followed by a call not having
copyin instructions, the non-default call prop values will be lost.
Fix this by trying to commit the call before processing the call props
structure.
Adjust the call-props-related decodeexec test to emulate that situation as
well.
Diffstat (limited to 'prog/decodeexec.go')
| -rw-r--r-- | prog/decodeexec.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/prog/decodeexec.go b/prog/decodeexec.go index f803d5b4c..de62879f7 100644 --- a/prog/decodeexec.go +++ b/prog/decodeexec.go @@ -116,6 +116,7 @@ func (dec *execDecoder) parse() { dec.commitCall() return case execInstrSetProps: + dec.commitCall() dec.readCallProps(&dec.call.Props) default: dec.commitCall() |
