[compiler-rt] [compiler-rt] Restore unsigned value in struct, use enum only in function (PR #165048)

Mikołaj Piróg via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 26 04:03:51 PDT 2025


================
@@ -661,14 +677,22 @@ static const char *getIntelProcessorTypeAndSubtype(
     break; // Unknown.
   }
 
+  if (Type != CPU_TYPE_MAX)
+    __cpu_model.__cpu_type = Type;
+  if (Subtype != CPU_SUBTYPE_MAX)
+    __cpu_model.__cpu_subtype = Subtype;
+
----------------
mikolaj-pirog wrote:

I've replaced the global with a pointer to struct

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


More information about the llvm-commits mailing list