https://bugs.llvm.org/show_bug.cgi?id=37120
Bug ID: 37120
Summary: LLVM assembly parser swaps getterName and setterName
operands of DIObjCProperty
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: LLVM assembly language parser
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Created attachment 20187
--> https://bugs.llvm.org/attachment.cgi?id=20187&action=edit
test case
Note that MetadataLoader also swaps these operands, so the bug stays hidden in
a round-trip between Assembly and Bitcode.
Steps to reproduce this bug:
$ cat test.ll
; ModuleID = 'test.ll'
source_filename = "test.ll"
!named = !{!0, !1, !2}
!0 = !DIFile(filename: "path/to/file", directory: "/path/to/dir")
!1 = !DICompositeType(tag: DW_TAG_structure_type, name: "Object")
!2 = !DIObjCProperty(name: "foo", file: !0, line: 7, setter: "setFoo", getter:
"getFoo", attributes: 7, type: !1)
$ opt -S test.ll | diff test.ll -
8c8
< !2 = !DIObjCProperty(name: "foo", file: !0, line: 7, setter: "setFoo",
getter: "getFoo", attributes: 7, type: !1)
---
> !2 = !DIObjCProperty(name: "foo", file: !0, line: 7, setter: "getFoo",
> getter: "setFoo", attributes: 7, type: !1)
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs