[PULL,1/5] tcg: Work around clang bug wrt enum ranges, part 2
diff mbox

Message ID 1455535767-28194-2-git-send-email-rth@twiddle.net
State New
Headers show

Commit Message

Richard Henderson Feb. 15, 2016, 11:29 a.m. UTC
A previous patch patch changed the type of REG from int
to enum TCGReg, which provokes the following bug in clang:


Signed-off-by: Richard Henderson  <rth@twiddle.net>
 tcg/tcg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff mbox

diff --git a/tcg/tcg.c b/tcg/tcg.c
index 0317c9e..664e8e1 100644
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -1602,7 +1602,7 @@  static void dump_regs(TCGContext *s)
 static void check_regs(TCGContext *s)
-    TCGReg reg;
+    int reg;
     int k;
     TCGTemp *ts;
     char buf[64];