This is an archive of the discontinued LLVM Phabricator instance.

[ms] llvm-lib gives a more useful error if no inputs and no output path are provided
ClosedPublic

Authored by epastor on Apr 30 2020, 8:15 PM.

Details

Summary

If no inputs and no output path are provided, llvm-lib should produce a useful error.

Before this, it would fail by reading from an unitialized StringRef.

Diff Detail

Event Timeline

epastor created this revision.Apr 30 2020, 8:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 30 2020, 8:15 PM
vvereschaka accepted this revision.Apr 30 2020, 9:03 PM

I have tested this patch on the ubuntu builder with enabled expensive checks and no-inputs.test test has passed.

...
PASS: LLVM :: tools/llvm-lib/no-inputs.test (35368 of 37269)
...
Testing Time: 518.63s
  Unsupported Tests:   319
  Expected Passes  : 36789
  Expected Failures:   161

I can't verify the patch on the other builders with the expensive checks - Debian and Windows, but I think they should be fine with these changes.

This revision is now accepted and ready to land.Apr 30 2020, 9:03 PM

I see that Harbormaster failed the build on Windows, but there is a lot of error: Connection to server timed out errors. Looks like there is some problem with that build system.

This revision was automatically updated to reflect the committed changes.