diff --git a/toolchain/lex/tokenized_buffer_benchmark.cpp b/toolchain/lex/tokenized_buffer_benchmark.cpp index 6f7488b04659..1232e925c51f 100644 --- a/toolchain/lex/tokenized_buffer_benchmark.cpp +++ b/toolchain/lex/tokenized_buffer_benchmark.cpp @@ -455,7 +455,7 @@ constexpr char DispatchSpecializableSymbols[] = { // [0-9A-Za-z] and the symbols above. Similar to the above symbols, doesn't need // to be exhaustive. constexpr std::array - DispatchSpecializableChars = []() constexpr { + DispatchSpecializableChars = []() { constexpr int Size = sizeof(DispatchSpecializableChars); std::array chars = {}; int i = 0; @@ -502,7 +502,7 @@ constexpr int MaxDispatchTargets = sizeof(DispatchSpecializableChars) + 1; // Dispatch tables with a provided number of distinct dispatch targets. There // will always be one additional target for the null byte to end the loop. template -constexpr DispatchTableT DispatchTable = []() constexpr { +constexpr DispatchTableT DispatchTable = []() { static_assert(NumDispatchTargets > 0, "Need at least one dispatch target."); static_assert(NumDispatchTargets <= MaxDispatchTargets, "Limited number of dispatch targets available.");