From 084f431aa510793a6e2011816efebbc71a24c0ff Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 23 May 2022 12:19:33 +0100 Subject: [PATCH] Correct `check_transmute` operand logic --- src/check_expr.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/check_expr.cpp b/src/check_expr.cpp index 013d22913..c674a774e 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -2844,8 +2844,10 @@ bool check_transmute(CheckerContext *c, Ast *node, Operand *o, Type *t) { } } + o->expr = node; o->mode = Addressing_Value; o->type = t; + o->value = {}; return true; }