mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-07 04:23:41 +00:00
Be able to handle complex64 and complex128 types
No support for complex types yet, but at least be able to handle their types.
This commit is contained in:
@@ -459,6 +459,10 @@ func (c *Compiler) getLLVMType(goType types.Type) (llvm.Type, error) {
|
||||
return llvm.FloatType(), nil
|
||||
case types.Float64:
|
||||
return llvm.DoubleType(), nil
|
||||
case types.Complex64:
|
||||
return llvm.VectorType(llvm.FloatType(), 2), nil
|
||||
case types.Complex128:
|
||||
return llvm.VectorType(llvm.DoubleType(), 2), nil
|
||||
case types.String:
|
||||
return c.mod.GetTypeByName("runtime._string"), nil
|
||||
case types.Uintptr:
|
||||
|
||||
Reference in New Issue
Block a user