Driver: correct behaviour of -fmsc-version=MAJOR
authorSaleem Abdulrasool <compnerd@compnerd.org>
Mon, 23 Jun 2014 17:36:36 +0000 (17:36 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Mon, 23 Jun 2014 17:36:36 +0000 (17:36 +0000)
commitf7062b23137f3fda28c6edbfbe1b3668af00b0c2
tree4dadedbe720bbb7189eaccd6028f433479a66f44
parentdd6ab8221e2bde33647e4d4f72233a24c2d55681
Driver: correct behaviour of -fmsc-version=MAJOR

Ensure that we properly handle the case where just the major version component
is provided by the user.

Thanks to Alp Toker for pointing out that this was not handled correctly!

llvm-svn: 211506
clang/lib/Frontend/CompilerInvocation.cpp
clang/test/Driver/msc-version.c