diff options
author | Jakob Botsch Nielsen <Jakob.botsch.nielsen@gmail.com> | 2021-06-24 20:25:54 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-24 20:25:54 +0300 |
commit | 5dbbae5f3b6e96ac113d20029ae3be7d3afd70d8 (patch) | |
tree | 2c8e9341415ed681857e4d8aebac03c7cf602b94 /src/coreclr/jit | |
parent | 8ecdf98273ac279871fb27da996c402f73188156 (diff) |
Fix instruction hex display (#54675)
Diffstat (limited to 'src/coreclr/jit')
-rw-r--r-- | src/coreclr/jit/emitxarch.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/coreclr/jit/emitxarch.cpp b/src/coreclr/jit/emitxarch.cpp index 6578232a929..a0a5e3283d4 100644 --- a/src/coreclr/jit/emitxarch.cpp +++ b/src/coreclr/jit/emitxarch.cpp @@ -8676,8 +8676,10 @@ void emitter::emitDispIns( if (code != nullptr) { /* Display the instruction hex code */ + assert(((code >= emitCodeBlock) && (code < emitCodeBlock + emitTotalHotCodeSize)) || + ((code >= emitColdCodeBlock) && (code < emitColdCodeBlock + emitTotalColdCodeSize))); - emitDispInsHex(id, code, sz); + emitDispInsHex(id, code + writeableOffset, sz); } /* Display the instruction name */ |