From f0ce2c50e10c775468e79f752c6dbb79385ab46a Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Tue, 12 Jan 2016 16:51:55 +0000 Subject: [PATCH] Fix compiler warnings from r257477 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257483 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Hexagon/RDFGraph.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Target/Hexagon/RDFGraph.cpp b/lib/Target/Hexagon/RDFGraph.cpp index 5bce110b17e..9b47422153b 100644 --- a/lib/Target/Hexagon/RDFGraph.cpp +++ b/lib/Target/Hexagon/RDFGraph.cpp @@ -315,7 +315,7 @@ void NodeAllocator::startNewBlock() { // Check if the block index is still within the allowed range, i.e. less // than 2^N, where N is the number of bits in NodeId for the block index. // BitsPerIndex is the number of bits per node index. - assert((Blocks.size() < (1 << (8*sizeof(NodeId)-BitsPerIndex))) && + assert((Blocks.size() < (1U << (8*sizeof(NodeId)-BitsPerIndex))) && "Out of bits for block index"); ActiveEnd = P; } @@ -789,7 +789,7 @@ unsigned DataFlowGraph::DefStack::nextUp(unsigned P) const { // The input position P does not have to point to a non-delimiter. unsigned SS = Stack.size(); bool IsDelim; - assert(P >= 0 && P < SS); + assert(P < SS); do { P++; IsDelim = isDelimiter(Stack[P-1]); -- 2.34.1