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: unassignedclangb...@nondot.org
Reporter: david.bolvan...@gmail.com
CC: llvm-bugs@lists.llvm.org, mclow.li...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs