================
@@ -954,9 +954,18 @@ void readGnuProperty(const InputSection &sec, 
ObjFile<ELFT> &f) {
       continue;
     }
 
-    uint32_t featureAndType = config->emachine == EM_AARCH64
-                                  ? GNU_PROPERTY_AARCH64_FEATURE_1_AND
-                                  : GNU_PROPERTY_X86_FEATURE_1_AND;
+    uint32_t featureAndType = 0;
+    switch (config->emachine) {
+    default:
----------------
yetingk wrote:

Is it better to add case `EM_CASE_X86` and set unreachable for default case?

https://github.com/llvm/llvm-project/pull/77414
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to