-
Notifications
You must be signed in to change notification settings - Fork 1.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
Extra calls in Asm #10962
Comments
Hi - this issue doesn't seem related to MSBuild. Are you asking a question about how the C# compiler compiles your code? |
@baronfel Hi, I think it's mistake of build of try catch block with Empty method. In asm Empty method should not to call. |
It's ok. This repo is for the build tools/engine, but your question does seem to be about the C# compiler (which is a tool that we end up calling). I'll transfer you to the Roslyn repo so they can see your question. |
Weird, I don't seem to have transfer permissions anymore. Can you recreate this at the dotnet/roslyn repo? |
Issue Description
I have method
And I have code witch call RecordError
But when I build it and check Asm, I see call [Test.O:RecordError(System.Exception)]
Since the method does not contain any code, its call could be removed.
I use .net 8 and Disasmo for see asm
Steps to Reproduce
I have method
And I have code witch call RecordError
Expected Behavior
Not call method
Actual Behavior
call method
Analysis
No response
Versions & Configurations
.net 8
The text was updated successfully, but these errors were encountered: