You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
export fn main () -> reg u64 {
reg u64 res;
res = 0;
() = #spill(res);
return res;
}
fails with error
compilation error:
variable allocation: variable “res.167” (declared at "file.jazz", line 4 (14-17)) may not be initialized
The spill is useless, but should the compiler fail? And the error message is wrong, the variable is not used, but it is initialized.
Using AT_none in the code generated by spill_prog (as hinted by the FIXME in lower_spill.v) fixes the issue. It enables the compiler to remove the useless spills. Is this the correct fix?
The text was updated successfully, but these errors were encountered:
The compilation of this program
fails with error
The spill is useless, but should the compiler fail? And the error message is wrong, the variable is not used, but it is initialized.
Using
AT_none
in the code generated byspill_prog
(as hinted by the FIXME in lower_spill.v) fixes the issue. It enables the compiler to remove the useless spills. Is this the correct fix?The text was updated successfully, but these errors were encountered: