Clean up static analyzer warnings.
authorMichael Ilseman <milseman@apple.com>
Fri, 12 Dec 2014 21:48:03 +0000 (21:48 +0000)
committerMichael Ilseman <milseman@apple.com>
Fri, 12 Dec 2014 21:48:03 +0000 (21:48 +0000)
commit3f0e8837be1414981558186f9688c4ff35dc1815
tree81679cffebe59ccf703bba98edbec33cd2ef27dc
parent5271cab7c9715ff0440ad71a3664f52c1d65b115
Clean up static analyzer warnings.

Clang's static analyzer found several potential cases of undefined
behavior, use of un-initialized values, and potentially null pointer
dereferences in tablegen, Support, MC, and ADT. This cleans them up
with specific assertions on the assumptions of the code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224154 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/BitVector.h
include/llvm/ADT/SmallBitVector.h
lib/MC/MCAsmStreamer.cpp
lib/MC/MCObjectStreamer.cpp
lib/MC/MCParser/COFFAsmParser.cpp
lib/Support/ScaledNumber.cpp
lib/Support/raw_ostream.cpp
lib/TableGen/Record.cpp
utils/TableGen/CodeGenDAGPatterns.cpp
utils/TableGen/CodeGenInstruction.cpp
utils/TableGen/CodeGenRegisters.cpp