This is an archive of the discontinued LLVM Phabricator instance.

Bitcode: Change module reader functions to return an llvm::Expected.
ClosedPublic

Authored by pcc on Nov 11 2016, 1:39 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

pcc updated this revision to Diff 77664.Nov 11 2016, 1:39 PM
pcc retitled this revision from to Bitcode: Change module reader functions to return an llvm::Expected..
pcc updated this object.
pcc added a reviewer: mehdi_amini.
pcc added a subscriber: llvm-commits.
mehdi_amini accepted this revision.Nov 11 2016, 8:50 PM
mehdi_amini edited edge metadata.

LGTM. Thanks.

llvm/unittests/Bitcode/BitReaderTest.cpp
61 ↗(On Diff #77664)

Any error was just ignored before? What was the behavior on error?

This revision is now accepted and ready to land.Nov 11 2016, 8:50 PM
pcc added inline comments.Nov 12 2016, 11:10 PM
llvm/unittests/Bitcode/BitReaderTest.cpp
61 ↗(On Diff #77664)

It looks like we would just fail the assertion in ErrorOr::getStorage().

This revision was automatically updated to reflect the committed changes.