From: David Chisnall Date: Tue, 22 May 2018 10:13:17 +0000 (+0000) Subject: [objc-gnustep2] Use unsigned char to avoid potential UB in isalnum. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e64588033668eaf4d0bfbd0d3a4fa5ebc1a3df4e;p=clang [objc-gnustep2] Use unsigned char to avoid potential UB in isalnum. Suggested by Gabor Buella. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@332966 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGObjCGNU.cpp b/lib/CodeGen/CGObjCGNU.cpp index 1c1abe90c6..6a0554b46b 100644 --- a/lib/CodeGen/CGObjCGNU.cpp +++ b/lib/CodeGen/CGObjCGNU.cpp @@ -1053,7 +1053,7 @@ class CGObjCGNUstep2 : public CGObjCGNUstep { if (isNamed) { StringName = ".objc_str_"; for (int i=0,e=Str.size() ; i