llvm.org GIT mirror llvm / bc075b2
Fixed misuse of isascii. Also fixes mingw32 build, see http://msdn.microsoft.com/en-us/library/ms235417.aspx git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203879 91177308-0d34-0410-b5e6-96231b3b80d8 Galina Kistanova 6 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
287287 bool is_previous_hex = false;
288288 for (size_t index = 0; index < len; ++index) {
289289 const wchar_t cur = begin[index];
290 if (is_previous_hex && isascii(cur) && IsXDigit(static_cast(cur))) {
290 if (is_previous_hex && iswascii(cur) && IsXDigit(static_cast(cur))) {
291291 // Previous character is of '\x..' form and this character can be
292292 // interpreted as another hexadecimal digit in its number. Break string to
293293 // disambiguate.