[clang] [libcxx] [llvm] Triple::normalize: Use none as OS for XX-none-ABI (PR #89638)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 30 18:46:24 PDT 2024


================
@@ -1151,6 +1151,13 @@ std::string Triple::normalize(StringRef Str) {
     }
   }
 
+  // For 3-component triples, the middle component is used to set Vendor;
----------------
MaskRay wrote:

Suggested comment

If "none" is in the middle component in a three-component triple, treat it as
the OS (Components[2]) instead of the vendor (Components[1]).


https://github.com/llvm/llvm-project/pull/89638


More information about the llvm-commits mailing list