fix Issue 9568 - [64bit] wrong code for scope(exit)
Merge pull request #1690 from donc/mergeBug9568

D1: fix Issue 9568 - [64bit] wrong code for scope(exit)