[objc-gnustep2] Use isalnum instead of a less efficient and nonportable equivalent.
Patch by Hans Wennborg! llvm-svn: 332964
This commit is contained in:
parent
404bbcbdcb
commit
88e754f57d
|
@ -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 += '_';
|
||||
|
|
Loading…
Reference in New Issue