From be4da532a6b6f61acc6b0160a9df724667a81891 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Thu, 7 Sep 2017 09:54:03 +0000 Subject: [PATCH] Fixing incorrectly capitalised regexps. Patch by Sam Allen! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312709 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/TableGen/Record.h | 2 +- tools/llvm-rc/ResourceScriptToken.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/llvm/TableGen/Record.h b/include/llvm/TableGen/Record.h index fa9ca285bcd..55b4dfe2fa2 100644 --- a/include/llvm/TableGen/Record.h +++ b/include/llvm/TableGen/Record.h @@ -1638,7 +1638,7 @@ struct LessRecordRegister { if (LHSNumParts != RHSNumParts) return LHSNumParts < RHSNumParts; - // We expect the registers to be of the form [_a-zA-z]+([0-9]*[_a-zA-Z]*)*. + // We expect the registers to be of the form [_a-zA-Z]+([0-9]*[_a-zA-Z]*)*. for (size_t I = 0, E = LHSNumParts; I < E; I+=2) { std::pair LHSPart = LHSParts.getPart(I); std::pair RHSPart = RHSParts.getPart(I); diff --git a/tools/llvm-rc/ResourceScriptToken.cpp b/tools/llvm-rc/ResourceScriptToken.cpp index ab46509b394..ba1ed5d416a 100644 --- a/tools/llvm-rc/ResourceScriptToken.cpp +++ b/tools/llvm-rc/ResourceScriptToken.cpp @@ -88,7 +88,7 @@ private: // Check if tokenizer can start reading an identifier at current position. // The original tool did non specify the rules to determine what is a correct // identifier. We assume they should follow the C convention: - // [a-zA-z_][a-zA-Z0-9_]*. + // [a-zA-Z_][a-zA-Z0-9_]*. bool canStartIdentifier() const; // Check if tokenizer can continue reading an identifier. bool canContinueIdentifier() const; -- 2.11.0