[llvm-branch-commits] [TableGen] Slightly improve error location for a fatal error (PR #170790)

Sergei Barannikov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Dec 5 05:20:33 PST 2025


================
@@ -1316,11 +1316,18 @@ CodeGenRegBank::getOrCreateSubClass(const CodeGenRegisterClass *RC,
   return {&RegClasses.back(), true};
 }
 
-CodeGenRegisterClass *CodeGenRegBank::getRegClass(const Record *Def) const {
+CodeGenRegisterClass *CodeGenRegBank::getRegClass(const Record *Def,
----------------
s-barannikov wrote:

I would prefer that the caller ensure that it is passing an instance of RegisterClass.

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


More information about the llvm-branch-commits mailing list