Hi Ömer,<div><div class="gmail_quote"><div dir="ltr"><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">See e.g. `lowerSafeForeignCall` and `blockCode`<br>
which set the field with `Just`. The former seems to be related with foreign<br>
calls so perhaps try compiling a FFI package.</blockquote></div></div><div><br></div><div>I tried compiling a module with a `foreign import ccall safe` declaration, yet the output raw Cmm still doesn't use `cml_cont`.</div><div><br></div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> `CmmLayoutStack` uses that field<br>
for code generation (I don't understand the details yet).<br></blockquote></div></div><div><br></div><div>Thanks for pointing that out, I'll check its implementation.</div><div><br></div><div>I also found another evidence of the field not used by codegens: in `PprC` which is used by unregisterised builds, only the `cml_target` field is used. So for now I assume that the assertion of `cml_cont = Nothing` holds for final Cmm output, and backend writers need not be concerned with it.</div><div><br></div><div>Regards,</div><div>Shao Cheng</div>