This is an archive of the discontinued LLVM Phabricator instance.

Bitcode: Change the BitcodeReader to use llvm::Error internally.
ClosedPublic

Authored by pcc on Nov 8 2016, 4:10 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

pcc updated this revision to Diff 77281.Nov 8 2016, 4:10 PM
pcc retitled this revision from to Bitcode: Change the BitcodeReader to use llvm::Error internally..
pcc updated this object.
pcc added reviewers: lhames, mehdi_amini, pete.
pcc added a subscriber: llvm-commits.
This revision was automatically updated to reflect the committed changes.
mehdi_amini added inline comments.Nov 9 2016, 1:54 PM
llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp
4362

Returning Error::success with a conversion to Expected seems to trigger an assertion.

pcc added inline comments.Nov 9 2016, 2:25 PM
llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp
4362

It seems that what we want to do here is return "", since we didn't encounter any errors but did not find an identification.