diff --git a/src/mapleall/maple_ir/src/bin_mpl_import.cpp b/src/mapleall/maple_ir/src/bin_mpl_import.cpp index 0840f5932a9ed331132da5d0957607192291cc85..5b769948fcd542520f6df32bf68752f068ac5103 100644 --- a/src/mapleall/maple_ir/src/bin_mpl_import.cpp +++ b/src/mapleall/maple_ir/src/bin_mpl_import.cpp @@ -809,11 +809,6 @@ TyIdx BinaryMplImport::ImportTypeNonJava() { for (int64 i = 0; i < size; ++i) { type.GetParamAttrsList().push_back(ImportTypeAttrs()); } - const auto it = GlobalTables::GetTypeTable().GetTypeHashTable().find(&type); - if (it != GlobalTables::GetTypeTable().GetTypeHashTable().end()) { - GlobalTables::GetTypeTable().PopBack(); - return (*it)->GetTypeIndex(); - } GlobalTables::GetTypeTable().CreateMirTypeNodeAt(type, tyIdxUsed, &mod, false, false); CHECK_FATAL(type.GetRetTyIdx() != TyIdx(0), "ImportTypeNonJava: retTyIdx cannot be 0"); return tyIdxUsed;