mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-11 14:33:41 +00:00
Implement printing of booleans
This commit is contained in:
+2
-1
@@ -1008,7 +1008,8 @@ func (c *Compiler) parseBuiltin(frame *Frame, args []ssa.Value, callName string)
|
||||
panic("undefined: " + name)
|
||||
}
|
||||
c.builder.CreateCall(fn, []llvm.Value{value}, "")
|
||||
continue
|
||||
} else if typ.Kind() == types.Bool {
|
||||
c.builder.CreateCall(c.mod.NamedFunction("runtime.printbool"), []llvm.Value{value}, "")
|
||||
} else {
|
||||
return llvm.Value{}, errors.New("unknown basic arg type: " + typ.String())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user