This is an archive of the discontinued LLVM Phabricator instance.

[Frontend] Verify that the bitstream is not empty before reading the serialised diagnostics
ClosedPublic

Authored by arphaman on Jul 6 2017, 10:14 AM.

Details

Summary

Clang should avoid calling report_fatal_error when the file with the serialised diagnostics is empty. This patch changes Clang's serialised diagnostic reader, now it reports an appropriate error instead of crashing.

Diff Detail

Repository
rL LLVM

Event Timeline

arphaman created this revision.Jul 6 2017, 10:14 AM
This revision is now accepted and ready to land.Jul 6 2017, 1:56 PM
This revision was automatically updated to reflect the committed changes.