[clang] [clang][driver][darwin] DarwinSDKInfo doesn't match sufficiently modified triples, doesn't warn for unsupported architectures (PR #204061)
Ian Anderson via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 15 23:23:15 PDT 2026
================
@@ -195,6 +273,8 @@ DarwinSDKInfo::parseDarwinSDKSettingsJSON(std::string FilePath,
PlatformInfoStorageType PlatformInfos =
parsePlatformInfos(*Obj, XcodePlatform, OSAndEnvironment.first,
OSAndEnvironment.second, *Version);
+ if (PlatformInfos.empty())
----------------
ian-twilightcoder wrote:
New code: Claude didn't like that PlatformInfos could theoretically be empty so I added this check and the two empty asserts in the constructor.
https://github.com/llvm/llvm-project/pull/204061
More information about the cfe-commits
mailing list