From a8ff57f90c39213869d0ceccc0b87a68cbc85ed2 Mon Sep 17 00:00:00 2001 From: Jakob Botsch Nielsen Date: Wed, 2 Nov 2022 18:42:25 +0100 Subject: [PATCH] Unrelated R2R comment fix --- src/coreclr/jit/emit.cpp | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/src/coreclr/jit/emit.cpp b/src/coreclr/jit/emit.cpp index a7644c3bcbd0f..30bc381fefa2f 100644 --- a/src/coreclr/jit/emit.cpp +++ b/src/coreclr/jit/emit.cpp @@ -4142,7 +4142,14 @@ void emitter::emitDispCommentForHandle(size_t handle, size_t cookie, GenTreeFlag } else if (flag == GTF_ICON_CLASS_HDL) { - str = emitComp->eeGetClassName(reinterpret_cast(handle)); + if (!emitComp->opts.IsReadyToRun()) + { + str = emitComp->eeGetClassName(reinterpret_cast(handle)); + } + else + { + str = "class handle"; + } } else if (flag == GTF_ICON_CONST_PTR) { @@ -4154,7 +4161,14 @@ void emitter::emitDispCommentForHandle(size_t handle, size_t cookie, GenTreeFlag } else if (flag == GTF_ICON_FIELD_HDL) { - str = emitComp->eeGetFieldName(reinterpret_cast(handle)); + if (!emitComp->opts.IsReadyToRun()) + { + str = emitComp->eeGetFieldName(reinterpret_cast(handle)); + } + else + { + str = "field handle"; + } } else if (flag == GTF_ICON_STATIC_HDL) { @@ -4162,7 +4176,14 @@ void emitter::emitDispCommentForHandle(size_t handle, size_t cookie, GenTreeFlag } else if (flag == GTF_ICON_METHOD_HDL) { - str = emitComp->eeGetMethodFullName(reinterpret_cast(handle)); + if (!emitComp->opts.IsReadyToRun()) + { + str = emitComp->eeGetMethodFullName(reinterpret_cast(handle)); + } + else + { + str = "method handle"; + } } else if (flag == GTF_ICON_FTN_ADDR) {