[llvm-bugs] [Bug 39133] New: Missing nonnull attribute for string_view(const _CharT* __s)
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Sep 29 16:49:10 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=39133
Bug ID: 39133
Summary: Missing nonnull attribute for string_view(const
_CharT* __s)
Product: libc++
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: All Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: david.bolvansky at gmail.com
CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com
Passing nullptr to string_view(const _CharT* __s) is undefined behavior.
=> mark string_view(const _CharT* __s) with __attribute__((__nonnull__)) to
enable more compiler optimizations?
--
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/20180929/40c94d4f/attachment.html>
More information about the llvm-bugs
mailing list