fix: switch to std::nullptr_t, add release-mode defined behavior#4
Conversation
There was a problem hiding this comment.
[pre-commit] reported by reviewdog 🐶
cstring_view/include/beman/cstring_view/cstring_view.hpp
Lines 87 to 150 in 9e0139f
There was a problem hiding this comment.
[pre-commit] reported by reviewdog 🐶
cstring_view/include/beman/cstring_view/cstring_view.hpp
Lines 14 to 85 in f2c03db
There was a problem hiding this comment.
[pre-commit] reported by reviewdog 🐶
cstring_view/include/beman/cstring_view/cstring_view.hpp
Lines 87 to 117 in f2c03db
There was a problem hiding this comment.
[pre-commit] reported by reviewdog 🐶
cstring_view/include/beman/cstring_view/cstring_view.hpp
Lines 119 to 123 in f2c03db
| assert(str[len] == charT()); | ||
| } | ||
| basic_cstring_view(nullptr_t) = delete; | ||
| constexpr basic_cstring_view(std::nullptr_t) = delete; |
There was a problem hiding this comment.
turns out that it is a bug in Clang/LLVM. llvm/llvm-project#154577
Description
Add workaround for LLVM bug llvm/llvm-project#154577 . Add return statement in function that otherwise in release mode has a path that does not return.
Related Issues
Motivation and Context
Fixing the main builds
Testing
Running the main builds on Clang/LLVM.
Meta