mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
transImplictCastExpr: LValueToRValue
This commit is contained in:
parent
1f82c7ba22
commit
1692a76d28
@ -521,6 +521,9 @@ fn transImplicitCastExpr(
|
||||
.FunctionToPointerDecay, .ArrayToPointerDecay => {
|
||||
return maybeSuppressResult(rp, scope, result_used, sub_expr_node);
|
||||
},
|
||||
.LValueToRValue => {
|
||||
return transExpr(rp, scope, sub_expr, .used, .r_value);
|
||||
},
|
||||
else => |kind| return revertAndWarn(
|
||||
rp,
|
||||
error.UnsupportedTranslation,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user