diff --git a/lib/Decompiler/DLATypeSystem.cpp b/lib/Decompiler/DLATypeSystem.cpp index 5acd93af7..e43553c3c 100644 --- a/lib/Decompiler/DLATypeSystem.cpp +++ b/lib/Decompiler/DLATypeSystem.cpp @@ -641,7 +641,7 @@ void LayoutTypeSystem::mergeNodes(const LayoutTypeSystemNodePtrVec &ToMerge) { // Remove From from Layouts bool Erased = Layouts.erase(From); revng_assert(Erased); - __asan_poison_memory_region(From, sizeof(LayoutTypeSystemNode)); + NodeAllocator.Deallocate(From); } } @@ -675,7 +675,7 @@ void LayoutTypeSystem::removeNode(LayoutTypeSystemNode *ToRemove) { bool Erased = Layouts.erase(ToRemove); revng_assert(Erased); - __asan_poison_memory_region(ToRemove, sizeof(LayoutTypeSystemNode)); + NodeAllocator.Deallocate(ToRemove); } static void moveEdgesWithoutSumming(LayoutTypeSystemNode *OldSrc, diff --git a/lib/Decompiler/DLATypeSystem.h b/lib/Decompiler/DLATypeSystem.h index 364b0633e..56fc73222 100644 --- a/lib/Decompiler/DLATypeSystem.h +++ b/lib/Decompiler/DLATypeSystem.h @@ -261,7 +261,7 @@ private: uint64_t NID = 0ULL; // Holds all the LayoutTypeSystemNode - llvm::SpecificBumpPtrAllocator NodeAllocator = {}; + llvm::BumpPtrAllocator NodeAllocator = {}; std::set Layouts = {}; // Holds the link tags, so that they can be deduplicated and referred to using