[llvm-bugs] [Bug 37120] New: LLVM assembly parser swaps getterName and setterName operands of DIObjCProperty
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Apr 13 05:01:26 PDT 2018
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: unassignedbugs at nondot.org
Reporter: dpfister at mail.de
CC: dexonsmith at apple.com, llvm-bugs at lists.llvm.org
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180413/fe61b3bd/attachment-0001.html>
More information about the llvm-bugs
mailing list