diff options
author | Timothy Flynn <trflynn89@pm.me> | 2022-03-17 14:53:10 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-18 19:56:50 +0100 |
commit | 31515a9147459d29f871d8dedfdc9a4072a9900d (patch) | |
tree | a825b6f409762d60fdac6f2cff2b4cf1d0f91fec /Userland/Demos/VirGLDemo | |
parent | 3b037726e97a74fc58657f95b8a63336d4a2780b (diff) | |
download | serenity-31515a9147459d29f871d8dedfdc9a4072a9900d.zip |
AK: Mark the StringView user-defined literal as consteval
Even though the StringView(char*, size_t) constructor only runs its
overflow check when evaluated in a runtime context, the code generated
here could prevent the compiler from optimizing invocations from the
StringView user-defined literal (verified on Compiler Explorer).
This changes the user-defined literal declaration to be consteval to
ensure it is evaluated at compile time.
Diffstat (limited to 'Userland/Demos/VirGLDemo')
0 files changed, 0 insertions, 0 deletions