[PATCH] D125276: [TableGen] Remove the use of global Record state

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 10 14:55:43 PDT 2022


craig.topper added inline comments.


================
Comment at: llvm/utils/TableGen/WebAssemblyDisassemblerEmitter.cpp:42
+    auto Opc =
+        static_cast<unsigned>(reinterpret_cast<IntInit *>(
+                                  Inst.convertInitializerTo(IntRecTy::get(RK)))
----------------
I know you didn't write, this but can the reinterpret_cast be a cast<>. reinterpret_cast looks suspicious.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D125276/new/

https://reviews.llvm.org/D125276



More information about the llvm-commits mailing list