commit | 07ec1469b9a4dc1fef0a4bd92f49a417f8eb9a54 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Thu Jan 22 23:38:45 2009 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Thu Jan 22 23:38:45 2009 +0000 |
tree | 3878d2e0b467e7a056a6026d3455e3452a968be8 | |
parent | d107e84ad68040ea52b1bb5bd7a8f4e69449ce38 [diff] [blame] |
do not sign extend characters input to isprint. This improves compatibility with VC++. Patch by Max Burke! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62813 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 5085fd4..50cd24b 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -681,7 +681,7 @@ O << "\\\""; } else if (C == '\\') { O << "\\\\"; - } else if (isprint(C)) { + } else if (isprint((unsigned char)C)) { O << C; } else { switch(C) {