================
@@ -1914,14 +1914,16 @@ struct DarwinPlatform {
   DarwinSDKInfo inferSDKInfo() {
     assert(Kind == InferredFromSDK && "can infer SDK info only");
     llvm::Triple::OSType OS = getOSFromPlatform(Platform);
+    llvm::Triple::EnvironmentType EnvironmentType =
+        getEnvironmentTypeFromEnvironmentKind(Environment);
----------------
cyndyishida wrote:

I think it would be cleaner to hold onto the EnvironmentType in the 
`DarwinPlatform` type instead of needing a helper function to convert.

https://github.com/llvm/llvm-project/pull/178115
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to