aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2014-01-21 08:36:38 -0800
committerRichard Henderson <rth@twiddle.net>2014-02-15 15:20:17 -0800
commitf6aa2f7dee920f6f06fefe122cf2a58cabe3cac0 (patch)
treec3ae187d4f5709339839bbb4df248ff2f201a104
parent0dbcf95a1ea5a5ca6222765ff8813c2cc17e8abd (diff)
TCG: Fix 32-bit host allocation typo
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>
-rw-r--r--tcg/tcg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcg/tcg.c b/tcg/tcg.c
index acd02b99b6..ffc851e0c6 100644
--- 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;