From 9af5a34991ea6e6aa5edbccd1b57a5af59ab78c1 Mon Sep 17 00:00:00 2001 From: Edward Kazuya Carlson Date: Tue, 23 Jun 2020 22:12:13 -0400 Subject: [PATCH] Update ILSpy.ReadyToRun/ReadyToRunLanguage.cs Co-authored-by: Andrew Au --- ILSpy.ReadyToRun/ReadyToRunLanguage.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ILSpy.ReadyToRun/ReadyToRunLanguage.cs b/ILSpy.ReadyToRun/ReadyToRunLanguage.cs index 0cbef4902..f29c5ce73 100644 --- a/ILSpy.ReadyToRun/ReadyToRunLanguage.cs +++ b/ILSpy.ReadyToRun/ReadyToRunLanguage.cs @@ -206,7 +206,7 @@ namespace ICSharpCode.ILSpy.ReadyToRun private static void DecorateUnwindInfo(ITextOutput output, Dictionary unwindInfo, ulong baseInstrIP, Instruction instr) { - ulong nextInstructionOffset = instr.NextIP; + ulong nextInstructionOffset = instr.NextIP - baseInstrIP; if (unwindInfo != null && unwindInfo.ContainsKey(nextInstructionOffset)) { UnwindCode unwindCode = unwindInfo[nextInstructionOffset]; output.Write($" ; {unwindCode.UnwindOp}({unwindCode.OpInfoStr})"); @@ -313,4 +313,4 @@ namespace ICSharpCode.ILSpy.ReadyToRun public Dictionary methodMap; } } -} \ No newline at end of file +}