Skip to content

Commit 6a83a84

Browse files
[IR] Remove an unnecessary cast (NFC) (#146381)
C is already of unsigned char.
1 parent 7a33b70 commit 6a83a84

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/IR/AsmWriter.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,8 +447,7 @@ void llvm::printLLVMNameWithoutPrefix(raw_ostream &OS, StringRef Name) {
447447
// in the range 0-255. This is important when building with MSVC because
448448
// its implementation will assert. This situation can arise when dealing
449449
// with UTF-8 multibyte characters.
450-
if (!isalnum(static_cast<unsigned char>(C)) && C != '-' && C != '.' &&
451-
C != '_') {
450+
if (!isalnum(C) && C != '-' && C != '.' && C != '_') {
452451
NeedsQuotes = true;
453452
break;
454453
}

0 commit comments

Comments
 (0)