Fix a bug in the conversion to ErrorOr.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 4 Jul 2014 20:05:56 +0000 (20:05 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 4 Jul 2014 20:05:56 +0000 (20:05 +0000)
commit483d89bcd454011f1ceb3aab7424463ea85a4f23
treece7a5c994929f53d5591caddcf669e4edec5308d
parentc77a7749ffee133e5f888c8aa6bbb50c4f85f70a
Fix a bug in the conversion to ErrorOr.

The regular end of the bitcode parsing is in the  BitstreamEntry::EndBlock
case.

Should fix the LTO bootstrap on OS X (this function is only used by ld64).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212357 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Bitcode/Reader/BitcodeReader.cpp