[compiler-rt] 506923a - [lsan] Don't use InternalMmapVectorNoCtor as local var
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Sun May 28 23:35:11 PDT 2023
Author: Vitaly Buka
Date: 2023-05-28T23:33:47-07:00
New Revision: 506923a12f377b7a6ae7950a5d4e902646bebfb0
URL: https://github.com/llvm/llvm-project/commit/506923a12f377b7a6ae7950a5d4e902646bebfb0
DIFF: https://github.com/llvm/llvm-project/commit/506923a12f377b7a6ae7950a5d4e902646bebfb0.diff
LOG: [lsan] Don't use InternalMmapVectorNoCtor as local var
Added:
Modified:
compiler-rt/lib/lsan/lsan_common.cpp
compiler-rt/lib/lsan/lsan_common_mac.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/lsan/lsan_common.cpp b/compiler-rt/lib/lsan/lsan_common.cpp
index 11207d3c754d..2a6b53ddf0b1 100644
--- a/compiler-rt/lib/lsan/lsan_common.cpp
+++ b/compiler-rt/lib/lsan/lsan_common.cpp
@@ -557,7 +557,7 @@ static void ProcessRootRegions(Frontier *frontier) {
return;
MemoryMappingLayout proc_maps(/*cache_enabled*/ true);
MemoryMappedSegment segment;
- InternalMmapVectorNoCtor<Region> mapped_regions;
+ InternalMmapVector<Region> mapped_regions;
while (proc_maps.Next(&segment))
if (segment.IsReadable())
mapped_regions.push_back({segment.start, segment.end});
diff --git a/compiler-rt/lib/lsan/lsan_common_mac.cpp b/compiler-rt/lib/lsan/lsan_common_mac.cpp
index d6f821fcb1f7..4e5198979b95 100644
--- a/compiler-rt/lib/lsan/lsan_common_mac.cpp
+++ b/compiler-rt/lib/lsan/lsan_common_mac.cpp
@@ -165,7 +165,7 @@ void ProcessPlatformSpecificAllocations(Frontier *frontier) {
vm_address_t address = 0;
kern_return_t err = KERN_SUCCESS;
- InternalMmapVectorNoCtor<Region> mapped_regions;
+ InternalMmapVector<Region> mapped_regions;
bool use_root_regions = flags()->use_root_regions && HasRootRegions();
RegionScanState scan_state;
More information about the llvm-commits
mailing list