Skip to content

Commit 789bc64

Browse files
authored
unblock inlining of generics with static fields (#109256)
1 parent 2c471af commit 789bc64

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/coreclr/jit/importer.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4047,8 +4047,6 @@ GenTree* Compiler::impImportStaticFieldAddress(CORINFO_RESOLVED_TOKEN* pResolved
40474047
{
40484048
case CORINFO_FIELD_STATIC_GENERICS_STATIC_HELPER:
40494049
{
4050-
assert(!compIsForInlining());
4051-
40524050
// We first call a special helper to get the statics base pointer
40534051
op1 = impParentClassTokenToHandle(pResolvedToken);
40544052

@@ -9222,10 +9220,7 @@ void Compiler::impImportBlockCode(BasicBlock* block)
92229220
compInlineResult->NoteFatal(InlineObservation::CALLEE_LDFLD_NEEDS_HELPER);
92239221
return;
92249222

9225-
case CORINFO_FIELD_STATIC_GENERICS_STATIC_HELPER:
92269223
case CORINFO_FIELD_STATIC_READYTORUN_HELPER:
9227-
/* We may be able to inline the field accessors in specific instantiations of generic
9228-
* methods */
92299224
compInlineResult->NoteFatal(InlineObservation::CALLSITE_LDFLD_NEEDS_HELPER);
92309225
return;
92319226

0 commit comments

Comments
 (0)