[lld/mac] Make a variable more local; no behavior change

The variable used to need the wider scope, but doesn't after the
reland. See LC_LINKER_OPTIONS-related discussion on
https://reviews.llvm.org/D104353 for background.
This commit is contained in:
Nico Weber 2021-06-20 21:59:11 -04:00
parent ce192ced2b
commit 3a6a60f6c9
1 changed files with 1 additions and 2 deletions

View File

@ -255,8 +255,7 @@ static InputFile *addFile(StringRef path, bool forceLoadArchive,
// We don't take a reference to cachedFile here because the // We don't take a reference to cachedFile here because the
// loadArchiveMember() call below may recursively call addFile() and // loadArchiveMember() call below may recursively call addFile() and
// invalidate this reference. // invalidate this reference.
ArchiveFile *cachedFile = loadedArchives[path]; if (ArchiveFile *cachedFile = loadedArchives[path])
if (cachedFile)
return cachedFile; return cachedFile;
std::unique_ptr<object::Archive> file = CHECK( std::unique_ptr<object::Archive> file = CHECK(