This is an archive of the discontinued LLVM Phabricator instance.

[lld][ELF] Check for errors when the response file doesn't exist.
Changes PlannedPublic

Authored by oontvoo on Oct 4 2021, 7:54 PM.

Details

Reviewers
thakis
MaskRay
Summary

The ExpandResponseFile function could return an error when it failed to expand the file (because it doens't exist or it's not readable, etc).
The caller should check for that rather than ignoring the return value then later on trying to load the @file.txt as an input file

similar change has also been made to lld-macho

Diff Detail