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)
commite6107799fabd0df72690ff276cfeb1d7559c40e4
tree068c1486ffb3c4a5a314e7af78101eda6806fa35
parentc75c4fad469022949df46faf22dbc3aad6d1624c
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).

llvm-svn: 212357
llvm/lib/Bitcode/Reader/BitcodeReader.cpp