[ms] llvm-lib gives a more useful error if no inputs and no output path are provided
authorEric Astor <epastor@google.com>
Fri, 1 May 2020 11:42:54 +0000 (07:42 -0400)
committerEric Astor <epastor@google.com>
Fri, 1 May 2020 11:43:32 +0000 (07:43 -0400)
commit1428f86cf9863255adac92e82ae459331123a502
treea52bc2138f3d66d82864113138eb2e1d7d02d6df
parent29b955f97cc6a4b96aba0ccdc033884c51ef466f
[ms] llvm-lib gives a more useful error if no inputs and no output path are provided

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.

Reviewed By: vvereschaka

Differential Revision: https://reviews.llvm.org/D79227
llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp