mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-08 21:13:39 +00:00
compiler: refactor parseTypeAssert
Move to the builder object, and rename to createTypeAssert.
This commit is contained in:
committed by
Ron Evans
parent
349ecf1736
commit
7733666fa8
@@ -1897,7 +1897,7 @@ func (c *Compiler) parseExpr(frame *Frame, expr ssa.Value) (llvm.Value, error) {
|
||||
return llvm.Value{}, c.makeError(expr.Pos(), "unknown slice type: "+typ.String())
|
||||
}
|
||||
case *ssa.TypeAssert:
|
||||
return c.parseTypeAssert(frame, expr), nil
|
||||
return frame.createTypeAssert(expr), nil
|
||||
case *ssa.UnOp:
|
||||
return c.parseUnOp(frame, expr)
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user