diff options
author | Ayke van Laethem <[email protected]> | 2021-02-22 20:49:02 +0100 |
---|---|---|
committer | Ron Evans <[email protected]> | 2021-03-12 12:35:06 +0100 |
commit | 34b50efdcd0f707d51c2ed41c1b844c78df06a16 (patch) | |
tree | 5c3cd64f585380c83dfb901f09897637bfe43508 /interp/interp.go | |
parent | 42088f938ed3fa4fb485aed9ee587fb18b86e992 (diff) | |
download | tinygo-34b50efdcd0f707d51c2ed41c1b844c78df06a16.tar.gz tinygo-34b50efdcd0f707d51c2ed41c1b844c78df06a16.zip |
interp: support GEP on fixed (MMIO) addresses
GetElementPtr would not work on values that weren't pointers. Because
fixed addresses (often used in memory-mapped I/O) are integers rather
than pointers in interp, it would return an error.
This resulted in the teensy40 target not compiling correctly since the
interp package rewrite. This commit should fix that.
Diffstat (limited to 'interp/interp.go')
-rw-r--r-- | interp/interp.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/interp/interp.go b/interp/interp.go index 38001a069..e6d3be88d 100644 --- a/interp/interp.go +++ b/interp/interp.go @@ -102,7 +102,7 @@ func Run(mod llvm.Module, debug bool) error { if callErr != nil { if isRecoverableError(callErr.Err) { if r.debug { - fmt.Fprintln(os.Stderr, "not interpretring", r.pkgName, "because of error:", callErr.Err) + fmt.Fprintln(os.Stderr, "not interpreting", r.pkgName, "because of error:", callErr.Error()) } mem.revert() continue |