================
@@ -1938,9 +1938,13 @@ struct DarwinPlatform {
const DarwinSDKInfo &SDKInfo) {
const DarwinSDKInfo::SDKPlatformInfo PlatformInfo =
SDKInfo.getCanonicalPlatformInfo();
- DarwinPlatform Result(InferredFromSDK,
- getPlatformFromOS(PlatformInfo.getOS()),
- SDKInfo.getVersion());
+ const llvm::Triple::OSType OS = PlatformInfo.getOS();
+ VersionTuple Version = SDKInfo.getVersion();
+ if (OS == llvm::Triple::MacOSX) {
----------------
ian-twilightcoder wrote:
Oh yeah (I originally had this on two lines with a VersionString local)
https://github.com/llvm/llvm-project/pull/181958
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits