-
-
Notifications
You must be signed in to change notification settings - Fork 3.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
StackBefore == null #12
Comments
in file ICSharpCode.Decompiler\ILAst\ILAstBuilder.cs |
What do you mean? Do you know how to trigger thouse? The first one would mean inconsisten stack - that is quite forbiden in CLR. So it would mean that there is a bug in the analysis. The second/third would mean that there is unreachable IL code - that is probably allowed, but again, it more likely means there is some scenario I did not htink of. |
Oh, I see the other bug report now... |
ILSpy_0.1.0.325_Source
|
I do not see anything that would branch to IL_0108. Is there some branch to that location somewhere else? Or is the code really just plainly unreachable? Does that come from the C# compiler? |
This is the real code and Reflector shows: |
Should be fixed in adfc7fc Please try it. I did not address if (branchTarget.StackBefore.Count != newStack.Count) // is true |
Add newline between members and between using block and namespace
Ln 207 if (branchTarget.StackBefore.Count != newStack.Count) // is true
Ln 233 int popCount = byteCode.PopCount ?? byteCode.StackBefore.Count; // StackBefore == null
Ln 384 int popCount = byteCode.PopCount ?? byteCode.StackBefore.Count; // StackBefore == null
The text was updated successfully, but these errors were encountered: