Skip to content
Snippets Groups Projects
Commit 50c5f439 authored by George Burgess IV's avatar George Burgess IV
Browse files

[Lex] Try to fix a 'comparison is always false' warning. NFC.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@272867 91177308-0d34-0410-b5e6-96231b3b80d8
parent 7b5a49b6
No related branches found
No related tags found
No related merge requests found
...@@ -162,7 +162,7 @@ static bool warnByDefaultOnWrongCase(StringRef Include) { ...@@ -162,7 +162,7 @@ static bool warnByDefaultOnWrongCase(StringRef Include) {
SmallString<32> LowerInclude{Include}; SmallString<32> LowerInclude{Include};
for (char &Ch : LowerInclude) { for (char &Ch : LowerInclude) {
// In the ASCII range? // In the ASCII range?
if (Ch < 0 || Ch > 0x7f) if (static_cast<unsigned char>(Ch) > 0x7f)
return false; // Can't be a standard header return false; // Can't be a standard header
// ASCII lowercase: // ASCII lowercase:
if (Ch >= 'A' && Ch <= 'Z') if (Ch >= 'A' && Ch <= 'Z')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment