GaloisInc / llvm-pretty

An llvm pretty printer inspired by the haskell llvm binding
Other
28 stars 15 forks source link

DIDerivedType metadata invalid dwarfAddressSpace specification #124

Open kquick opened 1 year ago

kquick commented 1 year ago

Creating a structure definition and then emitting it via pretty-printing causes llvm-as to fail on the result with errors like:

DWARF address space only applies to pointer or reference types !15 = !DIDerivedType(tag: DW_TAG_member, name: "msglen", file: !1, line: 1, baseType: !11, size: 32, dwarfAddressSpace: 0)