mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 10:43:29 +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
|
var low, high llvm.Value
|
||||||
|
|
||||||
if expr.Low != nil {
|
if expr.Low != nil {
|
||||||
lowType = expr.Low.Type().(*types.Basic)
|
lowType = expr.Low.Type().Underlying().(*types.Basic)
|
||||||
low, err = c.parseExpr(frame, expr.Low)
|
low, err = c.parseExpr(frame, expr.Low)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return llvm.Value{}, 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 {
|
if expr.High != nil {
|
||||||
highType = expr.High.Type().(*types.Basic)
|
highType = expr.High.Type().Underlying().(*types.Basic)
|
||||||
high, err = c.parseExpr(frame, expr.High)
|
high, err = c.parseExpr(frame, expr.High)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return llvm.Value{}, nil
|
return llvm.Value{}, nil
|
||||||
|
|||||||
Reference in New Issue
Block a user