Skip to content

Commit

Permalink
Add missing handle -> 'Type' conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio0694 committed Jun 16, 2024
1 parent ad1bb21 commit 60c34f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/coreclr/jit/importer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 60c34f3

Please sign in to comment.