[PATCH] D110905: [llvm] Add overload to propagate errors up to caller from ExpandResponseFiles
Vy Nguyen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 5 12:38:55 PDT 2021
oontvoo added inline comments.
================
Comment at: llvm/lib/Support/CommandLine.cpp:1267-1271
+ if (ExpandResponseFilesWithError(Saver, std::move(Tokenizer), Argv, MarkEOLs,
+ RelativeNames, std::move(CurrentDir),
+ *vfs::getRealFileSystem()))
+ return false;
+ return true;
----------------
dblaikie wrote:
> oontvoo wrote:
> > dblaikie wrote:
> > > dblaikie wrote:
> > > > Looks like this'll result in an assert if the function returns a non-success error, it probably needs a consumeError (or whatever it's called) in the failure case before returning false.
> > > ^ this is still pending/unaddressed
> > done (for real this time)
> Is this error path tested? (I would've thought if it was tested, this would've been crashing/highlighted the problem earlier - so that seems to hint that maybe this isn't tested, and should be?)
it's likely not tested given the build was all green earlier.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D110905/new/
https://reviews.llvm.org/D110905
More information about the llvm-commits
mailing list