valida-xyz / valida-compiler

Old, obsolete version of the Valida compiler; its replacement will become public later
Other
49 stars 12 forks source link

Missing return instruction in emitted code #4

Closed maxgillett closed 1 year ago

maxgillett commented 1 year ago

Compiling the following program using the command llc func.ll --global-isel --march=delendum:

; func.ll
define void @f() {
  ret void
}

produces assembly with a missing return instruction. A RET instruction is present in the gMIR (visible if running llc with the --stop-after=legalizer flag).

maxgillett commented 1 year ago

Fixed in commit f526a5f5965c9eca47b3a7f371b99636c6e350f9