From 1692a76d28740637b8b303ecbc05dca0fb0218b6 Mon Sep 17 00:00:00 2001 From: hryx Date: Sat, 8 Jun 2019 15:57:43 -0700 Subject: [PATCH] transImplictCastExpr: LValueToRValue --- src-self-hosted/translate_c.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src-self-hosted/translate_c.zig b/src-self-hosted/translate_c.zig index f9f5d52a5..459f90ad9 100644 --- a/src-self-hosted/translate_c.zig +++ b/src-self-hosted/translate_c.zig @@ -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,