[compiler-rt] [compiler-rt] Restore unsigned value in struct, use enum only in function (PR #165048)
Saleem Abdulrasool via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 25 11:34:32 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;
+
----------------
compnerd wrote:
Yeah, passing the pointer to the struct would be my preference as well.
https://github.com/llvm/llvm-project/pull/165048
More information about the llvm-commits
mailing list