fix Issue 12989 - Wrong x86_64 code for delegate return when compiled as lib
Merge pull request #3735 from WalterBright/fix12989

fix Issue 12989 - Wrong x86_64 code for delegate return when compiled as...