From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59304) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTDLu-0007Qn-CN for qemu-devel@nongnu.org; Tue, 09 Feb 2016 13:49:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aTDLr-0003Wm-4U for qemu-devel@nongnu.org; Tue, 09 Feb 2016 13:49:30 -0500 Received: from mail-pf0-x22e.google.com ([2607:f8b0:400e:c00::22e]:34775) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTDLq-0003Wh-UQ for qemu-devel@nongnu.org; Tue, 09 Feb 2016 13:49:27 -0500 Received: by mail-pf0-x22e.google.com with SMTP id x65so12260944pfb.1 for ; Tue, 09 Feb 2016 10:49:26 -0800 (PST) Sender: Richard Henderson From: Richard Henderson Date: Wed, 10 Feb 2016 05:48:48 +1100 Message-Id: <1455043728-417-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PATCH] tcg: Work around clang bug wrt enum ranges, part 2 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org 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 --- tcg/tcg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- 2.5.0