Skip to contentSkip to conversation

tcg: Work around clang bug wrt enum ranges, part 2

PATCH New Richard Henderson 1 participant 1 message Feb 9, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tcg: Work around clang bug wrt enum ranges, part 2

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

---
 tcg/tcg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tcg/tcg.c +1 -1
index 0317c9e..664e8e1 100644
@@ -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];
Signature · 1 line
2.5.0