[objc-gnustep2] Use isalnum instead of a less efficient and nonportable equivalent.

Patch by Hans Wennborg!

llvm-svn: 332964
This commit is contained in:
David Chisnall 2018-05-22 10:13:11 +00:00
parent 404bbcbdcb
commit 88e754f57d
1 changed files with 1 additions and 1 deletions

View File

@ -1054,7 +1054,7 @@ class CGObjCGNUstep2 : public CGObjCGNUstep {
StringName = ".objc_str_"; StringName = ".objc_str_";
for (int i=0,e=Str.size() ; i<e ; ++i) { for (int i=0,e=Str.size() ; i<e ; ++i) {
char c = Str[i]; char c = Str[i];
if (isalpha(c) || isnumber(c)) if (isalnum(c))
StringName += c; StringName += c;
else if (c == ' ') else if (c == ' ')
StringName += '_'; StringName += '_';