[clang] [llvm] [TableGen] Change SetTheory set/vec to use const Record * (PR #107692)

Rahul Joshi via cfe-commits cfe-commits at lists.llvm.org
Sat Sep 7 15:15:46 PDT 2024


================
@@ -2808,10 +2806,10 @@ RecordRecTy *Record::getType() {
   return RecordRecTy::get(TrackedRecords, DirectSCs);
 }
 
-DefInit *Record::getDefInit() {
+DefInit *Record::getDefInit() const {
   if (!CorrespondingDefInit) {
-    CorrespondingDefInit =
-        new (TrackedRecords.getImpl().Allocator) DefInit(this);
+    CorrespondingDefInit = new (TrackedRecords.getImpl().Allocator)
----------------
jurahul wrote:

The only issue is here, where 

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


More information about the cfe-commits mailing list