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() {
1807
1807
} else {
1808
1808
// Keep copies of per-module undefined symbols for LTO::GlobalResolutions
1809
1809
// usage.
1810
- [[maybe_unused]] StringRef SymbolRef =
1811
- unique_saver ().save (irSym.getName ());
1810
+ unique_saver ().save (irSym.getName ());
1812
1811
}
1813
1812
}
1814
1813
Original file line number Diff line number Diff line change @@ -350,11 +350,6 @@ class LTO {
350
350
DenseMap<GlobalValue::GUID, StringRef> PrevailingModuleForGUID;
351
351
} ThinLTO;
352
352
353
- std::unique_ptr<llvm::BumpPtrAllocator> Alloc;
354
-
355
- // Symbol saver for global resolution map.
356
- std::unique_ptr<llvm::StringSaver> GlobalResolutionSymbolSaver;
357
-
358
353
// The global resolution for a particular (mangled) symbol name. This is in
359
354
// particular necessary to track whether each symbol can be internalized.
360
355
// Because any input file may introduce a new cross-partition reference, we
@@ -412,6 +407,12 @@ class LTO {
412
407
};
413
408
};
414
409
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
+
415
416
// Global mapping from mangled symbol names to resolutions.
416
417
// Make this an unique_ptr to guard against accessing after it has been reset
417
418
// (to reduce memory after we're done with it).
You can’t perform that action at this time.
0 commit comments