================ @@ -83,7 +83,7 @@ getCategoryFromDiagGroup(const Record *Group, static std::string getDiagnosticCategory(const Record *R, DiagGroupParentMap &DiagGroupParents) { // If the diagnostic is in a group, and that group has a category, use it. - if (DefInit *Group = dyn_cast<DefInit>(R->getValueInit("Group"))) { + if (const DefInit *Group = dyn_cast<DefInit>(R->getValueInit("Group"))) { ---------------- erichkeane wrote:
most of these are actually supposed to be `const auto *` https://github.com/llvm/llvm-project/pull/112318 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits