[llvm-bugs] [Bug 36900] New: Wrong ast-printer output at __attribute__((nonnull(1)))
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Mar 26 01:58:00 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=36900
Bug ID: 36900
Summary: Wrong ast-printer output at
__attribute__((nonnull(1)))
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: simeonehrig at web.de
CC: llvm-bugs at lists.llvm.org
The ast printer print the wrong index at the nonnull attribute. If the first
argument of a function should be nonnull, the nonnull attribute should have the
value 1, but the printer prints 0.
$ echo 'void foo(void*) __attribute__((nonnull(1)));' | clang -cc1 -x c++ -
-ast-print
void foo(void *) __attribute__((nonnull(0)));
The correct output should be
void foo(void *) __attribute__((nonnull(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/20180326/caa50481/attachment.html>
More information about the llvm-bugs
mailing list