From eabe8f96357c6439b533da88afcd81984230ddbf Mon Sep 17 00:00:00 2001 From: Edward Kazuya Carlson Date: Sat, 8 Aug 2020 10:41:05 -0700 Subject: [PATCH] Update ILSpy.ReadyToRun/ReadyToRunLanguage.cs Change how it handle's unexpected var loc types. Co-authored-by: Siegfried Pammer --- ILSpy.ReadyToRun/ReadyToRunLanguage.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ILSpy.ReadyToRun/ReadyToRunLanguage.cs b/ILSpy.ReadyToRun/ReadyToRunLanguage.cs index f10c40941..602771a2f 100644 --- a/ILSpy.ReadyToRun/ReadyToRunLanguage.cs +++ b/ILSpy.ReadyToRun/ReadyToRunLanguage.cs @@ -170,7 +170,7 @@ namespace ICSharpCode.ILSpy.ReadyToRun output.WriteLine($" Offset: {DebugInfo.GetPlatformSpecificRegister(debugInfo.Machine, varLoc.VariableLocation.Data1)}"); break; default: - throw new BadImageFormatException("Unexpected variable type"); + output.WriteLine("WRN: Unexpected variable location type"); } output.WriteLine(""); }