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)
commit5be22a12c2fdb4e13ead4b2e8a8a68f07fb1f270
treed32cd1ee5853b7b127f7bc8acbb58e753c5feccd
parent90482a77b114ba612951233d90f0173d7b7d04a6
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.

llvm-svn: 224154
llvm/include/llvm/ADT/BitVector.h
llvm/include/llvm/ADT/SmallBitVector.h
llvm/lib/MC/MCAsmStreamer.cpp
llvm/lib/MC/MCObjectStreamer.cpp
llvm/lib/MC/MCParser/COFFAsmParser.cpp
llvm/lib/Support/ScaledNumber.cpp
llvm/lib/Support/raw_ostream.cpp
llvm/lib/TableGen/Record.cpp
llvm/utils/TableGen/CodeGenDAGPatterns.cpp
llvm/utils/TableGen/CodeGenInstruction.cpp
llvm/utils/TableGen/CodeGenRegisters.cpp