aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-05-23 12:19:33 +0100
committergingerBill <bill@gingerbill.org>2022-05-23 12:19:33 +0100
commit084f431aa510793a6e2011816efebbc71a24c0ff (patch)
treef55745914fb2cbd98be278a9ab5d7afadcb3a96d /src/check_expr.cpp
parentd9f293b2818b30ebe2d29180aa62c3ce432c4582 (diff)
Correct `check_transmute` operand logic
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp2
1 files changed, 2 insertions, 0 deletions
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;
}