From 65c8938841ca4550a7de40e820ac7f5c0125298b Mon Sep 17 00:00:00 2001 From: Jakob Botsch Nielsen Date: Tue, 13 Jan 2026 16:00:53 +0100 Subject: [PATCH] JIT: Fix build after two conflicting changes --- src/coreclr/jit/importer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/coreclr/jit/importer.cpp b/src/coreclr/jit/importer.cpp index b55cb1aee2577f..d74bb860f8a22b 100644 --- a/src/coreclr/jit/importer.cpp +++ b/src/coreclr/jit/importer.cpp @@ -3397,8 +3397,9 @@ bool Compiler::impImportAndPushBoxForNullable(CORINFO_RESOLVED_TOKEN* pResolvedT // Decompose the Nullable<> arg into _hasValue and _value fields // and calculate the type and layout of the 'value' field // + // Boxing allows the "initclass" flag, but not volatile/unaligned flags GenTreeFlags indirFlags = GTF_EMPTY; - nullableObj = impGetNodeAddr(nullableObj, CHECK_SPILL_ALL, &indirFlags); + nullableObj = impGetNodeAddr(nullableObj, CHECK_SPILL_ALL, GTF_IND_INITCLASS, &indirFlags); GenTree* nullableObjClone; nullableObj = impCloneExpr(nullableObj, &nullableObjClone, CHECK_SPILL_ALL, nullptr DEBUGARG("nullable obj clone"));