forked from OSchip/llvm-project
[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:
parent
ce192ced2b
commit
3a6a60f6c9
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue