summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorDavid Chisnall <csdavec@swan.ac.uk>2018-05-22 10:13:11 +0000
committerDavid Chisnall <csdavec@swan.ac.uk>2018-05-22 10:13:11 +0000
commit88e754f57d6147fc19e098186a255176aec15784 (patch)
tree26eb485209329155fee04e33d2dbd6a099e921c5 /clang/lib
parent404bbcbdcb7d257b2071c1bc45b971352f04a21f (diff)
downloadbcm5719-llvm-88e754f57d6147fc19e098186a255176aec15784.tar.gz
bcm5719-llvm-88e754f57d6147fc19e098186a255176aec15784.zip
[objc-gnustep2] Use isalnum instead of a less efficient and nonportable equivalent.
Patch by Hans Wennborg! llvm-svn: 332964
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/CodeGen/CGObjCGNU.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGObjCGNU.cpp b/clang/lib/CodeGen/CGObjCGNU.cpp
index eb016597cee..1c1abe90c61 100644
--- a/clang/lib/CodeGen/CGObjCGNU.cpp
+++ b/clang/lib/CodeGen/CGObjCGNU.cpp
@@ -1054,7 +1054,7 @@ class CGObjCGNUstep2 : public CGObjCGNUstep {
StringName = ".objc_str_";
for (int i=0,e=Str.size() ; i<e ; ++i) {
char c = Str[i];
- if (isalpha(c) || isnumber(c))
+ if (isalnum(c))
StringName += c;
else if (c == ' ')
StringName += '_';
OpenPOWER on IntegriCloud