From 87ddf91da08221062998df6dd4063d3094f8bea1 Mon Sep 17 00:00:00 2001 From: Fred Chow Date: Thu, 13 May 2021 00:54:09 -0700 Subject: [PATCH] Fixed bug in importing function types in ImportTypeNonJava() --- src/mapleall/maple_ir/src/bin_mpl_import.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/mapleall/maple_ir/src/bin_mpl_import.cpp b/src/mapleall/maple_ir/src/bin_mpl_import.cpp index 0840f5932a..5b769948fc 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; -- Gitee