[compiler-rt] [Compiler-rt] Fix wrong assignment in compiler_rt (PR #164713)

Mikołaj Piróg via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 23 04:22:13 PDT 2025


================
@@ -1162,8 +1162,8 @@ __attribute__((visibility("hidden")))
 #endif
 struct __processor_model {
   unsigned int __cpu_vendor;
-  unsigned int __cpu_type;
-  unsigned int __cpu_subtype;
+  enum ProcessorTypes  __cpu_type;
+  enum ProcessorSubtypes  __cpu_subtype;
----------------
mikolaj-pirog wrote:

I've added type to enum and an assert to check for size

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


More information about the llvm-commits mailing list