[clang] [Clang][TableGen] Use const pointers for various Init objects in NeonEmitter (PR #112317)

Rahul Joshi via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 15 13:23:56 PDT 2024


================
@@ -1438,9 +1439,9 @@ void Intrinsic::emitReturn() {
   emitNewLine();
 }
 
-std::pair<Type, std::string> Intrinsic::DagEmitter::emitDag(DagInit *DI) {
+std::pair<Type, std::string> Intrinsic::DagEmitter::emitDag(const DagInit *DI) {
   // At this point we should only be seeing a def.
-  DefInit *DefI = cast<DefInit>(DI->getOperator());
+  const DefInit *DefI = cast<DefInit>(DI->getOperator());
----------------
jurahul wrote:

Done (for this and other PRs that I have out for review).

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


More information about the cfe-commits mailing list