Jelajahi Sumber

Correct `check_transmute` operand logic

gingerBill 3 tahun lalu
induk
melakukan
084f431aa5
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  1. 2 0
      src/check_expr.cpp

+ 2 - 0
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;
 }