From 2bab98bbaeac075d67d6a846ca616641a05e15eb Mon Sep 17 00:00:00 2001 From: Venkatraman Govindaraju Date: Mon, 6 Jan 2014 08:24:44 +0000 Subject: [PATCH] [Sparc] Explicitly cast -1 to unsigned to fix buildbot errors. llvm-svn: 198592 --- llvm/lib/Target/Sparc/Disassembler/SparcDisassembler.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/llvm/lib/Target/Sparc/Disassembler/SparcDisassembler.cpp b/llvm/lib/Target/Sparc/Disassembler/SparcDisassembler.cpp index 1f32674..d8c776e 100644 --- a/llvm/lib/Target/Sparc/Disassembler/SparcDisassembler.cpp +++ b/llvm/lib/Target/Sparc/Disassembler/SparcDisassembler.cpp @@ -104,14 +104,14 @@ static const unsigned DFPRegDecoderTable[] = { SP::D14, SP::D30, SP::D15, SP::D31 }; static const unsigned QFPRegDecoderTable[] = { - SP::Q0, SP::Q8, -1, -1, - SP::Q1, SP::Q9, -1, -1, - SP::Q2, SP::Q10, -1, -1, - SP::Q3, SP::Q11, -1, -1, - SP::Q4, SP::Q12, -1, -1, - SP::Q5, SP::Q13, -1, -1, - SP::Q6, SP::Q14, -1, -1, - SP::Q7, SP::Q15, -1, -1 } ; + SP::Q0, SP::Q8, (unsigned)-1, (unsigned)-1, + SP::Q1, SP::Q9, (unsigned)-1, (unsigned)-1, + SP::Q2, SP::Q10, (unsigned)-1, (unsigned)-1, + SP::Q3, SP::Q11, (unsigned)-1, (unsigned)-1, + SP::Q4, SP::Q12, (unsigned)-1, (unsigned)-1, + SP::Q5, SP::Q13, (unsigned)-1, (unsigned)-1, + SP::Q6, SP::Q14, (unsigned)-1, (unsigned)-1, + SP::Q7, SP::Q15, (unsigned)-1, (unsigned)-1 } ; static DecodeStatus DecodeIntRegsRegisterClass(MCInst &Inst, unsigned RegNo, -- 2.7.4