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

via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 11 06:01:01 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:

Does `|=` not work on Bitset?

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


More information about the cfe-commits mailing list