naasking / CIL

A simple CIL bytecode processing library
GNU Lesser General Public License v2.1
10 stars 3 forks source link

CIL.Expressions: debug mode problems #2

Open exyi opened 6 years ago

exyi commented 6 years ago

When I compile my project in Debug, the compiler emits some redundant IL like ... goto NextLine; NextLine: ... which breaks the decompiler.

naasking commented 6 years ago

Yes, the control-flow analysis is incomplete at the moment, in that it doesn't properly merge branches in all cases. I'll try to get to it this weekend.

exyi commented 6 years ago

I understand where is the problem, I was also writing a "decompiler" :D Just putting it here to make sure that it's a known problem.