[llvm] [LLVM][TableGen] Change DAGISel code to use const RecordKeeper (PR #109038)
Rahul Joshi via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 18 09:52:21 PDT 2024
================
@@ -132,7 +132,8 @@ struct PatternSortingPredicate {
} // End anonymous namespace
void DAGISelEmitter::run(raw_ostream &OS) {
- Records.startTimer("Parse patterns");
+ RecordKeeper &MutableRC = const_cast<RecordKeeper &>(Records);
----------------
jurahul wrote:
I have addressed this now and removed the const_cast here.
https://github.com/llvm/llvm-project/pull/109038
More information about the llvm-commits
mailing list