This is an archive of the discontinued LLVM Phabricator instance.

Serialization: Hoist the check for in-flight diagnostics in ASTReader::getInputFile, NFC
ClosedPublic

Authored by dexonsmith on Nov 12 2020, 10:11 AM.

Details

Summary

This logic seems easier to follow without the Error() helper, and
checking DiagnosticsEngine::isDiagnosticInFlight just once up front.

Diff Detail