Open SnirkImmington opened 5 years ago
The program
fn main() return
doesn't work; we attempt to emit an extra ret void at the end of methods that don't have an explicit return type.
ret void
We could do a check of whether we are returning early at the identify or LLVM phase.
The program
doesn't work; we attempt to emit an extra
ret void
at the end of methods that don't have an explicit return type.We could do a check of whether we are returning early at the identify or LLVM phase.