diff mbox

[RFC,13/14] tcg: Use temp number 0 again

Message ID 1479325910-9060-14-git-send-email-rth@twiddle.net
State New
Headers show

Commit Message

Richard Henderson Nov. 16, 2016, 7:51 p.m. UTC
Now that we're storing pointers, we don't have to reserve
index 0 to avoid the apperance of a NULL pointer.

Signed-off-by: Richard Henderson <rth@twiddle.net>
---
 tcg/tcg.c | 5 -----
 1 file changed, 5 deletions(-)
diff mbox

Patch

diff --git a/tcg/tcg.c b/tcg/tcg.c
index a2a0b90..d4409ad 100644
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -330,11 +330,6 @@  void tcg_context_init(TCGContext *s)
 
     memset(s, 0, sizeof(*s));
 
-    /* Reserve global 0 so that, when foxing these integrals
-       as pointers, NULL is unused.  */
-    s->nb_globals = 1;
-    s->nb_temps = 1;
-
     /* Count total number of arguments and allocate the corresponding
        space */
     total_args = 0;