TCG: Fix 32-bit host allocation typo
authorRichard Henderson <rth@twiddle.net>
Tue, 21 Jan 2014 16:36:38 +0000 (08:36 -0800)
committerRichard Henderson <rth@twiddle.net>
Sat, 15 Feb 2014 23:20:17 +0000 (15:20 -0800)
The second half register of a 64-bit temp on a 32-bit host
was allocated with the wrong base_type.

The base_type of the second half register is never checked,
but for consistency it should be the same as the first half.

Signed-off-by: Richard Henderson <rth@twiddle.net>
tcg/tcg.c

index acd02b9..ffc851e 100644 (file)
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -526,7 +526,7 @@ static inline int tcg_temp_new_internal(TCGType type, int temp_local)
             ts->temp_local = temp_local;
             ts->name = NULL;
             ts++;
-            ts->base_type = TCG_TYPE_I32;
+            ts->base_type = type;
             ts->type = TCG_TYPE_I32;
             ts->temp_allocated = 1;
             ts->temp_local = temp_local;