File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -1807,8 +1807,7 @@ void BitcodeFile::parseLazy() {
18071807 } else {
18081808 // Keep copies of per-module undefined symbols for LTO::GlobalResolutions
18091809 // usage.
1810- [[maybe_unused]] StringRef SymbolRef =
1811- unique_saver ().save (irSym.getName ());
1810+ unique_saver ().save (irSym.getName ());
18121811 }
18131812}
18141813
Original file line number Diff line number Diff line change @@ -350,11 +350,6 @@ class LTO {
350350 DenseMap<GlobalValue::GUID, StringRef> PrevailingModuleForGUID;
351351 } ThinLTO;
352352
353- std::unique_ptr<llvm::BumpPtrAllocator> Alloc;
354-
355- // Symbol saver for global resolution map.
356- std::unique_ptr<llvm::StringSaver> GlobalResolutionSymbolSaver;
357-
358353 // The global resolution for a particular (mangled) symbol name. This is in
359354 // particular necessary to track whether each symbol can be internalized.
360355 // Because any input file may introduce a new cross-partition reference, we
@@ -412,6 +407,12 @@ class LTO {
412407 };
413408 };
414409
410+ // GlobalResolutionSymbolSaver allocator.
411+ std::unique_ptr<llvm::BumpPtrAllocator> Alloc;
412+
413+ // Symbol saver for global resolution map.
414+ std::unique_ptr<llvm::StringSaver> GlobalResolutionSymbolSaver;
415+
415416 // Global mapping from mangled symbol names to resolutions.
416417 // Make this an unique_ptr to guard against accessing after it has been reset
417418 // (to reduce memory after we're done with it).
You can’t perform that action at this time.
0 commit comments