[clang] [Clang][TableGen] Use const pointers for various Init objects in Diagnostic Emitter (PR #112318)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 15 13:06:04 PDT 2024
================
@@ -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
More information about the cfe-commits
mailing list