[llvm] [TableGen] Fix assertion when initializing a bit from a !cond expression (PR #197224)
Pengcheng Wang via llvm-commits
llvm-commits at lists.llvm.org
Wed May 13 00:03:37 PDT 2026
================
@@ -2732,6 +2732,8 @@ std::string CondOpInit::getAsString() const {
}
const Init *CondOpInit::getBit(unsigned Bit) const {
+ if (getType() == BitRecTy::get(getRecordKeeper()))
----------------
wangpc-pp wrote:
You may use `isa<BitRecTy>`?
https://github.com/llvm/llvm-project/pull/197224
More information about the llvm-commits
mailing list