================ @@ -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"))) { ---------------- jurahul wrote:
Right, because of the dyn_cast<>. Let me change them 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