summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibX86
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2022-03-17 14:53:10 -0400
committerAndreas Kling <kling@serenityos.org>2022-03-18 19:56:50 +0100
commit31515a9147459d29f871d8dedfdc9a4072a9900d (patch)
treea825b6f409762d60fdac6f2cff2b4cf1d0f91fec /Userland/Libraries/LibX86
parent3b037726e97a74fc58657f95b8a63336d4a2780b (diff)
downloadserenity-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/Libraries/LibX86')
0 files changed, 0 insertions, 0 deletions