Fix compiler warnings from r257477

llvm-svn: 257483
This commit is contained in:
Krzysztof Parzyszek 2016-01-12 16:51:55 +00:00
parent 4b83a4f6fe
commit 8dca45efa8
1 changed files with 2 additions and 2 deletions

View File

@ -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]);