[llvm] 2ca4b4f - [NFC] Suppress warning after D139114

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 13 14:37:37 PST 2023


Author: Vitaly Buka
Date: 2023-01-13T14:37:21-08:00
New Revision: 2ca4b4f82e993d31c67a0e595ca584f860cd6811

URL: https://github.com/llvm/llvm-project/commit/2ca4b4f82e993d31c67a0e595ca584f860cd6811
DIFF: https://github.com/llvm/llvm-project/commit/2ca4b4f82e993d31c67a0e595ca584f860cd6811.diff

LOG: [NFC] Suppress warning after D139114

Added: 
    

Modified: 
    llvm/lib/Support/UnicodeNameToCodepoint.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Support/UnicodeNameToCodepoint.cpp b/llvm/lib/Support/UnicodeNameToCodepoint.cpp
index a10a7e8082ac5..df71be3ca2871 100644
--- a/llvm/lib/Support/UnicodeNameToCodepoint.cpp
+++ b/llvm/lib/Support/UnicodeNameToCodepoint.cpp
@@ -105,7 +105,7 @@ static Node readNode(uint32_t Offset, const Node *Parent = nullptr) {
     uint8_t H = UnicodeNameToCodepointIndex[Offset++];
     N.HasSibling = H & 0x80;
     bool HasChildren = H & 0x40;
-    H &= ~0xC0;
+    H &= ~uint8_t(0xC0);
     if (HasChildren) {
       N.ChildrenOffset = (H << 16);
       N.ChildrenOffset |=


        


More information about the llvm-commits mailing list