This is an archive of the discontinued LLVM Phabricator instance.

[vfs] Don't bail out after a missing -ivfsoverlay file
ClosedPublic

Authored by benlangmuir on Mar 19 2018, 5:02 PM.

Details

Reviewers
bruno
vsapsai
Summary

This make -ivfsoverlay behave more like other fatal errors (e.g. missing
-include file) by skipping the missing file instead of bailing out of
the whole compilation. This makes it possible for libclang to still
provide some functionallity as well as to correctly produce the fatal
error diagnostic (previously we lost the diagnostic in libclang since
there was no TU to tie it to).

rdar://33385423

Diff Detail

Repository
rC Clang

Event Timeline

benlangmuir created this revision.Mar 19 2018, 5:02 PM
bruno accepted this revision.Mar 22 2018, 3:34 PM

One minor suggestion but otherwise LGTM

lib/Frontend/CompilerInvocation.cpp
3083

Can you take the opportunity and remove the curly braces here?

This revision is now accepted and ready to land.Mar 22 2018, 3:34 PM
benlangmuir closed this revision.Mar 23 2018, 10:40 AM
benlangmuir marked an inline comment as done.

r328337