OSDN Git Service

tcg: Work around clang bug wrt enum ranges, part 2
authorRichard Henderson <rth@twiddle.net>
Tue, 9 Feb 2016 18:20:16 +0000 (05:20 +1100)
committerRichard Henderson <rth@twiddle.net>
Tue, 23 Feb 2016 16:07:14 +0000 (08:07 -0800)
A previous patch patch changed the type of REG from int
to enum TCGReg, which provokes the following bug in clang:

  https://llvm.org/bugs/show_bug.cgi?id=16154

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

index 0317c9e..664e8e1 100644 (file)
--- 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];