Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix swift error throwing on non-darwin ARM platforms #55
A minor change to get Swift Error throwing to work on non-darwin ARM32 platforms (e.g. Android.) Without this change, code generated saves and restores ARM register r8 at the entry and returns of a function that throws. As r8 is used as a virtual return value for the object being thrown this gets overwritten by the restore and calling code is unable to catch the error. This was causing do/try/catch not to work on Android as it is an ARM32 platform that does not satisfy "STI.isTargetDarwin()"