llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

Regression: [TableGen] Reimplement union_modes for InfoByHwMode to be avoid a sec…

Open archimedus opened this issue 3 years ago • 3 comments

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) {

archimedus avatar Apr 18 '23 11:04 archimedus

CC @topperc

RKSimon avatar Apr 18 '23 12:04 RKSimon

I think this was fixed in https://github.com/llvm/llvm-project/commit/55fc4f6b

dstutt avatar Apr 18 '23 15:04 dstutt

Does look to be fixed now.

topperc avatar Apr 18 '23 17:04 topperc