From e4af5c04d52d91890e52e6bf0c7497fbef20ae28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Strehovsk=C3=BD?= Date: Tue, 11 Feb 2025 00:43:03 -0800 Subject: [PATCH] Don't block inlining CORINFO_VIRTUALCALL_LDVIRTFTN Just curious what breaks. --- src/coreclr/jit/importercalls.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/coreclr/jit/importercalls.cpp b/src/coreclr/jit/importercalls.cpp index 319466fd94071d..5800a82b1940c0 100644 --- a/src/coreclr/jit/importercalls.cpp +++ b/src/coreclr/jit/importercalls.cpp @@ -386,12 +386,6 @@ var_types Compiler::impImportCall(OPCODE opcode, case CORINFO_VIRTUALCALL_LDVIRTFTN: { - if (compIsForInlining()) - { - compInlineResult->NoteFatal(InlineObservation::CALLSITE_HAS_CALL_VIA_LDVIRTFTN); - return TYP_UNDEF; - } - assert(!(mflags & CORINFO_FLG_STATIC)); // can't call a static method assert(!(clsFlags & CORINFO_FLG_VALUECLASS)); // OK, We've been told to call via LDVIRTFTN, so just