[Swift 2.2] Extract Version value out of optional when parsing _compiler_version


(Dmitri Gribenko) #1

Hi Joe,

This patch fixes the build when SWIFT_COMPILER_VERSION. That macro is
set in all production builds of the compiler.

https://github.com/apple/swift/pull/1225

Dmitri

···

--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr@gmail.com>*/


(Joe Pamer) #2

Thanks, Dmitri!

This change is approved. I've accepted your pull request.

- Joe

···

On 02/06/16 06:56 PM, Dmitri Gribenko <gribozavr@gmail.com> wrote:

Hi Joe,

This patch fixes the build when SWIFT_COMPILER_VERSION. That macro is
set in all production builds of the compiler.

https://github.com/apple/swift/pull/1225

Dmitri

--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr@gmail.com>*/