authorgravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2022-08-05 20:53:34+03:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2022-08-05 22:13:58+03:00
log0daa77bd63a3ef9666d5ccda40929403a4bb3305
treec92c00eaba343c975cfaeb6993f29d415fb7a919
parentf46d7304b176cdc77053225943a7d5030dd0d4ee

stage2 cbe: correct `airIsNull` ptr operand check


1 files changed, 1 insertions(+), 1 deletions(-)

src/codegen/c.zig+1-1
......@@ -3252,7 +3252,7 @@ fn airIsNull(
32523252
32533253 const ty = f.air.typeOf(un_op);
32543254 var opt_buf: Type.Payload.ElemType = undefined;
3255 const payload_ty = if (ty.zigTypeTag() == .Pointer)
3255 const payload_ty = if (deref_suffix[0] != 0)
32563256 ty.childType().optionalChild(&opt_buf)
32573257 else
32583258 ty.optionalChild(&opt_buf);