Fix SmallVector's size calculation so that a size of 0 is
authorDan Gohman <gohman@apple.com>
Fri, 22 Aug 2008 16:07:55 +0000 (16:07 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 22 Aug 2008 16:07:55 +0000 (16:07 +0000)
commit1501cdbf63cff3afd92df6cd249096770334b268
tree4bd8c7134277e2a860214aa80bb833260a8337b7
parent969a46a948414734f5bc01994e54d88d153cb3fb
Fix SmallVector's size calculation so that a size of 0 is
handled correctly, and change a few SmallVector uses to use
size 0 to more clearly reflect their intent.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55181 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/SmallVector.h
lib/CodeGen/BranchFolding.cpp
lib/CodeGen/IfConversion.cpp