mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 02:27:48 +00:00
compiler: fix another usage of the named type
This commit is contained in:
committed by
Ayke van Laethem
parent
1ed019771d
commit
46755b774e
@@ -2511,7 +2511,7 @@ func (c *Compiler) parseExpr(frame *Frame, expr ssa.Value) (llvm.Value, error) {
|
||||
var low, high llvm.Value
|
||||
|
||||
if expr.Low != nil {
|
||||
lowType = expr.Low.Type().(*types.Basic)
|
||||
lowType = expr.Low.Type().Underlying().(*types.Basic)
|
||||
low, err = c.parseExpr(frame, expr.Low)
|
||||
if err != nil {
|
||||
return llvm.Value{}, nil
|
||||
@@ -2529,7 +2529,7 @@ func (c *Compiler) parseExpr(frame *Frame, expr ssa.Value) (llvm.Value, error) {
|
||||
}
|
||||
|
||||
if expr.High != nil {
|
||||
highType = expr.High.Type().(*types.Basic)
|
||||
highType = expr.High.Type().Underlying().(*types.Basic)
|
||||
high, err = c.parseExpr(frame, expr.High)
|
||||
if err != nil {
|
||||
return llvm.Value{}, nil
|
||||
|
||||
Reference in New Issue
Block a user