diff --git a/lib/Decompiler/DLATypeSystem.cpp b/lib/Decompiler/DLATypeSystem.cpp index dc3f65e6a..1c12bfd9c 100644 --- a/lib/Decompiler/DLATypeSystem.cpp +++ b/lib/Decompiler/DLATypeSystem.cpp @@ -471,6 +471,7 @@ inline void LayoutTypeSystem::mergeNodes(LayoutTypeSystemNode *From, LayoutTypeSystemNode *Into, llvm::SmallSet *IntoTypePtrs) { + revng_assert(From != Into); revng_log(MergeLog, "Merging: " << From << " Into: " << Into); auto LayoutIt = Layouts.find(From); revng_assert(LayoutIt != Layouts.end());