tcg: Init temp_subindex in liveness_pass_2
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 3 Feb 2023 22:58:12 +0000 (12:58 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Sat, 4 Feb 2023 16:19:42 +0000 (06:19 -1000)
Correctly handle large types while lowering.

Fixes: fac87bd2a49b ("tcg: Add temp_subindex to TCGTemp")
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/tcg.c

index fd557d55d37a0ddf1264ab6cec2e22bbae6df188..bc60fd0fe87b88b5e9696b6ebae91c8269798436 100644 (file)
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -3063,6 +3063,7 @@ static bool liveness_pass_2(TCGContext *s)
             TCGTemp *dts = tcg_temp_alloc(s);
             dts->type = its->type;
             dts->base_type = its->base_type;
+            dts->temp_subindex = its->temp_subindex;
             dts->kind = TEMP_EBB;
             its->state_ptr = dts;
         } else {