From ca8b1a7959a9dc1caec3cbc154c6341f21f9a0d4 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Sat, 2 Jan 2021 05:05:10 -0800 Subject: [PATCH] GetUnspecializedMethodInstance fix --- IDEHelper/Compiler/BfModule.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/IDEHelper/Compiler/BfModule.cpp b/IDEHelper/Compiler/BfModule.cpp index d728836a..1e498225 100644 --- a/IDEHelper/Compiler/BfModule.cpp +++ b/IDEHelper/Compiler/BfModule.cpp @@ -9746,8 +9746,9 @@ BfMethodInstance* BfModule::GetUnspecializedMethodInstance(BfMethodInstance* met if (!owner->IsGenericTypeInstance()) return methodInstance; - BF_ASSERT(!owner->IsDelegateFromTypeRef()); - BF_ASSERT(!owner->IsTuple()); + if ((owner->IsDelegateFromTypeRef()) || + (owner->IsTuple())) + return methodInstance; auto genericType = (BfTypeInstance*)owner; if ((genericType->IsUnspecializedType()) && (!genericType->IsUnspecializedTypeVariation()))