diff options
author | Ayke van Laethem <[email protected]> | 2022-09-22 13:33:00 +0200 |
---|---|---|
committer | Ron Evans <[email protected]> | 2022-10-19 22:23:19 +0200 |
commit | 62df1d7490ccf495dc08837ec72ee1d6042bc374 (patch) | |
tree | 379a9e4e5f46dc8293beeb3ba1f386f08bdf53c9 /compiler/ircheck | |
parent | 229746b71ef8c6ab095f0e97aa722959c6f07268 (diff) | |
download | tinygo-62df1d7490ccf495dc08837ec72ee1d6042bc374.tar.gz tinygo-62df1d7490ccf495dc08837ec72ee1d6042bc374.zip |
all: remove pointer ElementType calls
This is needed for opaque pointers, which are enabled by default in
LLVM 15.
Diffstat (limited to 'compiler/ircheck')
-rw-r--r-- | compiler/ircheck/check.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/ircheck/check.go b/compiler/ircheck/check.go index 30c6ee172..e2b7ed510 100644 --- a/compiler/ircheck/check.go +++ b/compiler/ircheck/check.go @@ -70,10 +70,7 @@ func (c *checker) checkType(t llvm.Type, checked map[llvm.Type]struct{}, special return fmt.Errorf("failed to verify element type of array type %s: %s", t.String(), err.Error()) } case llvm.PointerTypeKind: - // check underlying type - if err := c.checkType(t.ElementType(), checked, specials); err != nil { - return fmt.Errorf("failed to verify underlying type of pointer type %s: %s", t.String(), err.Error()) - } + // Pointers can't be checked in an opaque pointer world. case llvm.VectorTypeKind: // check element type if err := c.checkType(t.ElementType(), checked, specials); err != nil { |