This is an archive of the discontinued LLVM Phabricator instance.

[clang] Fix assertion failure using -MJ with -fsyntax-only
ClosedPublic

Authored by benlangmuir on Aug 28 2023, 2:13 PM.

Details

Summary

If there is no output filename we should not assert when writing output for -MJ.

Diff Detail

Event Timeline

benlangmuir created this revision.Aug 28 2023, 2:13 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 28 2023, 2:13 PM
benlangmuir requested review of this revision.Aug 28 2023, 2:13 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 28 2023, 2:13 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
MaskRay accepted this revision.Aug 29 2023, 9:27 PM

Looks great!

clang/test/Driver/compilation_database_fsyntax_only.c
1 ↗(On Diff #554046)

The test can be added into compilation_database.c.

This revision is now accepted and ready to land.Aug 29 2023, 9:27 PM
benlangmuir added inline comments.Aug 30 2023, 10:09 AM
clang/test/Driver/compilation_database_fsyntax_only.c
1 ↗(On Diff #554046)

Done, thanks!