llvm-project/llvm/lib/Bitcode/Reader
Chris Lattner 6c29cb3b7a Fix the underlying problem that was causing read(0) to be called: sometimes the
bitcode writer would generate abbrev records saying that the abbrev should be
filled with fixed zero-bit bitfields (this happens in the .bc writer when 
the number of types used in a module is exactly one, since log2(1) == 0).

In this case, just handle it as a literal zero.  We can't "just fix" the writer
without breaking compatibility with existing bc files, so have the abbrev reader
do the substitution.

Strengthen the assert in read to reject reads of zero bits so we catch such 
crimes in the future, and remove the special case designed to handle this.

llvm-svn: 174801
2013-02-09 07:07:29 +00:00
..
BitReader.cpp Move all of the header files which are involved in modelling the LLVM IR 2013-01-02 11:36:10 +00:00
BitcodeReader.cpp Code Custodian (trivial whitespace cleanup) 2013-02-06 22:14:06 +00:00
BitcodeReader.h Move all of the header files which are involved in modelling the LLVM IR 2013-01-02 11:36:10 +00:00
BitstreamReader.cpp Fix the underlying problem that was causing read(0) to be called: sometimes the 2013-02-09 07:07:29 +00:00
CMakeLists.txt BitstreamReader hasn't aged well. It's been hacked on by various people and 2013-01-19 18:19:39 +00:00
LLVMBuild.txt LLVMBuild: Remove trailing newline, which irked me. 2011-12-12 19:48:00 +00:00
Makefile make -fno-rtti the default unless a directory builds with REQUIRES_RTTI. 2010-01-24 20:43:08 +00:00