forked from OSchip/llvm-project
[libc][NFC] Mark a constructor of StringView to be constexpr.
This commit is contained in:
parent
313ce7217e
commit
89e5c20ca9
|
@ -56,7 +56,7 @@ public:
|
|||
|
||||
// Ctor for raw literal.
|
||||
template <size_t N>
|
||||
StringView(const char (&Str)[N]) : StringView(Str, N - 1) {}
|
||||
constexpr StringView(const char (&Str)[N]) : StringView(Str, N - 1) {}
|
||||
|
||||
constexpr const char *data() const { return Data; }
|
||||
|
||||
|
|
Loading…
Reference in New Issue