[clang] [AArch64]: Refactor target parser to use Bitset. (PR #65423)

via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 12 04:13:56 PDT 2023


================
@@ -1605,13 +1691,14 @@ TEST(TargetParserTest, AArch64ExtensionFeatures) {
 
   std::vector<StringRef> Features;
 
-  uint64_t ExtVal = 0;
+  Bitset<AArch64::AEK_EXTENSIONS_MAX> ExtVal;
   for (auto Ext : Extensions)
-    ExtVal |= Ext;
+    ExtVal.set(Ext);
----------------
sdesmalen-arm wrote:

Ah of course, that makes sense.

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


More information about the cfe-commits mailing list