llvm-project
llvm-project copied to clipboard
Regression: [TableGen] Reimplement union_modes for InfoByHwMode to be avoid a sec…
The comparision in line 56 introduced in https://github.com/llvm/llvm-project/commit/931418667063743330f2c4195fd43ea64b0f8a12 is incorrect and leads llvm-tblgen to crash in certain conditions.
The line
if (BI != A.end() && BI->first == DefaultMode) {
should be replaced with:
if (BI != B.end() && BI->first == DefaultMode) {
CC @topperc
I think this was fixed in https://github.com/llvm/llvm-project/commit/55fc4f6b
Does look to be fixed now.