IL2CPU icon indicating copy to clipboard operation
IL2CPU copied to clipboard

Leave address should be pushed to the stack

Open jp2masa opened this issue 7 years ago • 0 comments

The endfinally/endfilter op declares a data member to store the leave address and the leave op stores the current address in the data member, but the address should be stored in the stack. For example, if a method calls itself from a finally block (which comes from a leave address X), and the finally block in the called method comes from a leave address Y, then Y is stored in the data member and, after returning, endfinally/endfilter will jump address Y, but it should jump to X.

Related to #16

jp2masa avatar Oct 25 '17 22:10 jp2masa