diff --git a/src/coreclr/jit/importer.cpp b/src/coreclr/jit/importer.cpp index c5913f7c9425b7..fc0d38f010147b 100644 --- a/src/coreclr/jit/importer.cpp +++ b/src/coreclr/jit/importer.cpp @@ -2497,7 +2497,8 @@ GenTree* Compiler::impGetGenericTypeDefinition(GenTree* type) { CORINFO_CLASS_HANDLE hClassResult = info.compCompHnd->getTypeDefinition(hClassType); - GenTree* retNode = gtNewIconEmbClsHndNode(hClassResult); + GenTree* handle = gtNewIconEmbClsHndNode(hClassResult); + GenTree* retNode = gtNewHelperCallNode(CORINFO_HELP_TYPEHANDLE_TO_RUNTIMETYPE, TYP_REF, handle); // Drop the typeof(T) node impPopStack();