llvm-project
53368bf9 - [CIR] Fix InlineAsmOp roundtrip parse crash on cir.asm (#186588)

Commit
5 days ago
[CIR] Fix InlineAsmOp roundtrip parse crash on cir.asm (#186588) Fix InlineAsmOp parser/printer roundtrip for cir.asm and avoid null operand_attrs entries that crash alias printing during --verify-roundtrip. - Parse attr-dict before optional result arrow to match print order. - Use non-null sentinel attributes for non-maybe_memory operands and check UnitAttr explicitly. - Keep lowering semantics by treating only UnitAttr as maybe_memory marker. - Update inline-asm CIR IR test to run with --verify-roundtrip and add an attr+result coverage case. Fix https://github.com/llvm/llvm-project/issues/161441
Author
Parents
Loading