From 139c0c7c37c69dc82e530fe4ab35ae419eaea7ab Mon Sep 17 00:00:00 2001 From: Dylan McKay Date: Sun, 11 Dec 2016 00:24:13 +0000 Subject: [PATCH] [AVR] Fix a signed vs unsigned compiler warning llvm-svn: 289349 --- llvm/lib/Target/AVR/AVRExpandPseudoInsts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/AVR/AVRExpandPseudoInsts.cpp b/llvm/lib/Target/AVR/AVRExpandPseudoInsts.cpp index bb952e2..36f24a2 100644 --- a/llvm/lib/Target/AVR/AVRExpandPseudoInsts.cpp +++ b/llvm/lib/Target/AVR/AVRExpandPseudoInsts.cpp @@ -688,7 +688,7 @@ bool AVRExpandPseudo::expand(Block &MBB, BlockIt MBBI) { BitVector Available = RS.getRegsAvailable(&AVR::GPR8RegClass); Available &= Candidates; - unsigned TmpReg = Available.find_first(); + signed TmpReg = Available.find_first(); assert(TmpReg != -1 && "ran out of registers"); MIBLO = buildMI(MBB, MBBI, OpLo) -- 2.7.4