-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Improve error reporting when reading bad metadata during EnC #75304
Conversation
2825b44
to
f1127ff
Compare
@davidwengier @dotnet/roslyn-compiler ptal |
@@ -690,7 +692,7 @@ static ImmutableArray<string> getHoistedVariableNames(ImmutableArray<ISymbolInte | |||
{ | |||
provider = Baseline.DebugInformationProvider(MetadataTokens.MethodDefinitionHandle(methodRowId)); | |||
} | |||
catch (Exception e) when (e is InvalidDataException or IOException) | |||
catch (Exception e) when (e is InvalidDataException or IOException or BadImageFormatException) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not a critical error. If a method is deleted and its body is not updated to throw an exception it would execute the original IL. Perhaps we could add a new warning but I don't think it's worth the effort.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (commit 1)
Helps diagnosing issues like #65176