[llvm] [TableGen][NFC] Add record kind to `Record` class (PR #69919)

Artem Belevich via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 23 10:32:43 PDT 2023


================
@@ -2264,8 +2264,8 @@ DefInit *VarDefInit::instantiate() {
   if (!Def) {
     RecordKeeper &Records = Class->getRecords();
     auto NewRecOwner = std::make_unique<Record>(Records.getNewAnonymousName(),
-                                           Class->getLoc(), Records,
-                                           /*IsAnonymous=*/true);
+                                                Class->getLoc(), Records,
+                                                /*Kind=*/Record::RK_Anonymous);
----------------
Artem-B wrote:

Now that the argument is no longer a boolean, `/*Kind=*/` is no longer needed here and in other places.


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


More information about the llvm-commits mailing list