transImplictCastExpr: LValueToRValue

master
hryx 2019-06-08 15:57:43 -07:00
parent 1f82c7ba22
commit 1692a76d28
No known key found for this signature in database
GPG Key ID: 6A2784E15D7D95D6
1 changed files with 3 additions and 0 deletions

View File

@ -521,6 +521,9 @@ fn transImplicitCastExpr(
.FunctionToPointerDecay, .ArrayToPointerDecay => { .FunctionToPointerDecay, .ArrayToPointerDecay => {
return maybeSuppressResult(rp, scope, result_used, sub_expr_node); return maybeSuppressResult(rp, scope, result_used, sub_expr_node);
}, },
.LValueToRValue => {
return transExpr(rp, scope, sub_expr, .used, .r_value);
},
else => |kind| return revertAndWarn( else => |kind| return revertAndWarn(
rp, rp,
error.UnsupportedTranslation, error.UnsupportedTranslation,