Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix comments in asm with JitDiffableDasm=1 #56416

Merged
4 commits merged into from
Jul 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/coreclr/jit/emit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3936,7 +3936,7 @@ void emitter::emitDispCommentForHandle(size_t handle, GenTreeFlags flag)
// NOTE: eGetCPString always returns nullptr on Linux/ARM
if (wstr == nullptr)
{
printf("%s string handle", commentPrefix);
str = "string handle";
}
else
{
Expand Down
4 changes: 2 additions & 2 deletions src/coreclr/jit/emitxarch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8851,6 +8851,7 @@ void emitter::emitDispIns(
else
{
PRINT_CONSTANT:
ssize_t srcVal = val;
// Munge any pointers if we want diff-able disassembly
if (emitComp->opts.disDiffable)
{
Expand All @@ -8872,8 +8873,7 @@ void emitter::emitDispIns(
{ // (val < 0)
printf("-0x%IX", -val);
}

emitDispCommentForHandle(val, id->idDebugOnlyInfo()->idFlags & GTF_ICON_HDL_MASK);
emitDispCommentForHandle(srcVal, id->idDebugOnlyInfo()->idFlags & GTF_ICON_HDL_MASK);
}
break;

Expand Down