[clang] [clang] Provide an SSE4.2 implementation of identifier token lexer (PR #68962)

via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 13 02:02:19 PDT 2023


================
@@ -1847,19 +1851,46 @@ bool Lexer::LexUnicodeIdentifierStart(Token &Result, uint32_t C,
   return true;
 }
 
+static const char *fastParseASCIIIdentifier(const char *CurPtr, const char* BufferEnd) {
----------------
cor3ntin wrote:

```suggestion
static const char *fastParseASCIIIdentifier(const char *CurPtr, [[maybe_unused]] const char* BufferEnd) {
```

This way you can get rid of the `#else`

https://github.com/llvm/llvm-project/pull/68962


More information about the cfe-commits mailing list