diff options
author | Ayke van Laethem <[email protected]> | 2021-11-11 02:41:29 +0100 |
---|---|---|
committer | Ron Evans <[email protected]> | 2021-11-11 08:59:32 +0100 |
commit | 1681ed02d3035f3216885d560433bc1ad953ed24 (patch) | |
tree | cc6d9d57f827121882e42673c7d15cbe50f6d748 /interp/testdata/revert.out.ll | |
parent | 7e68980c395339b1e9b78c08477d47b7ba15354d (diff) | |
download | tinygo-1681ed02d3035f3216885d560433bc1ad953ed24.tar.gz tinygo-1681ed02d3035f3216885d560433bc1ad953ed24.zip |
interp: take care of constant globals
Constant globals can't have been modified, even if a pointer is passed
externally. Therefore, don't treat it as such in hasExternalStore.
In addition, it doesn't make sense to update values of constant globals
after the interp pass is finished. So don't do this.
TODO: track whether objects are actually modified and only update the
globals if this is the case.
Diffstat (limited to 'interp/testdata/revert.out.ll')
0 files changed, 0 insertions, 0 deletions