[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
Fri Oct 24 15:28:42 PDT 2025
================
@@ -823,14 +847,19 @@ static const char *getAMDProcessorTypeAndSubtype(
// Models 60h-6Fh (Krackan1).
// Models 70h-77h (Sarlak).
CPU = "znver5";
- *Subtype = AMDFAM1AH_ZNVER5;
+ Subtype = AMDFAM1AH_ZNVER5;
break; // "znver5"
}
break;
default:
break; // Unknown AMD CPU.
}
+ if (Type != CPU_TYPE_MAX)
+ __cpu_model.__cpu_type = Type;
+ if (Subtype != CPU_SUBTYPE_MAX)
+ __cpu_model.__cpu_subtype = Subtype;
----------------
compnerd wrote:
Likewise
https://github.com/llvm/llvm-project/pull/165048
More information about the llvm-commits
mailing list