compiler: fix another usage of the named type
Этот коммит содержится в:
родитель
1ed019771d
коммит
46755b774e
1 изменённых файлов: 2 добавлений и 2 удалений
|
@ -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
|
||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче