From 92993293491ea967a0716c8897dddc60549f10e3 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Tue, 20 Feb 2018 19:12:37 -0500 Subject: [PATCH] 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 Backports commit 869938ae2a284fe730cb6f807ea0f9e324e0f87c from qemu --- qemu/tcg/tcg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu/tcg/tcg.c b/qemu/tcg/tcg.c index 00782d00..b2542273 100644 --- a/qemu/tcg/tcg.c +++ b/qemu/tcg/tcg.c @@ -1670,7 +1670,7 @@ static void dump_regs(TCGContext *s) static void check_regs(TCGContext *s) { - TCGReg reg; + int reg; int k; TCGTemp *ts; char buf[64];