Browse Source

Update ILSpy.ReadyToRun/ReadyToRunLanguage.cs

Change how it handle's unexpected var loc types.

Co-authored-by: Siegfried Pammer <siegfriedpammer@gmail.com>
pull/2067/head
Edward Kazuya Carlson 5 years ago committed by GitHub
parent
commit
eabe8f9635
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ILSpy.ReadyToRun/ReadyToRunLanguage.cs

2
ILSpy.ReadyToRun/ReadyToRunLanguage.cs

@ -170,7 +170,7 @@ namespace ICSharpCode.ILSpy.ReadyToRun @@ -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("");
}

Loading…
Cancel
Save