Fix compiler crash
Previously the following code would cause the compiler to crash. Now it will display a helpful error message:
struct FFIBytes
var ptr: Pointer[U8 val] = Pointer[U8].create()
var length: USize = 0
fun iso string(): String val =>
recover String.from_cpointer(consume FFIBytes.ptr, consume FFIBytes.length) end
actor Main
new create(env: Env) =>
env.out.print("nothing to see here")
Add prebuilt ponyc binaries for Ubuntu 24.04
We've added prebuilt ponyc binaries specifically made to work on Ubuntu 24.04.
You can opt into using the Ubuntu binaries when using ponyup by running:
ponyup default ubuntu24.04
Fix generation of invalid LLVM IR
Previously, this code failed at LLVM module verification. Now, with this change, it's fixed by stopping the generation of ret
instructions after terminator instructions:
class Foo
new create(a: U32) ? =>
error
actor Main
new create(env: Env) =>
try
let f = Foo(1)?
end
[0.58.4] - 2024-05-01
Fixed
Added
- Add prebuilt ponyc binaries for Ubuntu 24.04 (PR #4508)