mirror of https://github.com/tinygo-org/tinygo.git
Browse Source
Bug: 1. fn.locals[v.value] returns 0 (the default value) if v.value is not part of the fn.locals map. 2. locals[fn.locals[v.value]] then returns the first local value, which is usually non-nil 3. This incorrect value is then used as the operand value. The manifestation of this convoluted bug was https://github.com/tinygo-org/tinygo/issues/2842. It didn't occur more often probably because it only seems to happen in practice with inline assembly. Fixes https://github.com/tinygo-org/tinygo/issues/2842pull/2868/head
Ayke van Laethem
3 years ago
committed by
Ron Evans
1 changed files with 17 additions and 1 deletions
Loading…
Reference in new issue