aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-01-22 23:38:45 +0000
committerChris Lattner <sabre@nondot.org>2009-01-22 23:38:45 +0000
commitbbfa244b2fa986c53a1bcf38b6dd0fea082afaaa (patch)
tree3878d2e0b467e7a056a6026d3455e3452a968be8 /lib/CodeGen
parentd94aa403b74d2c5a726d26d666a1396a82443bb6 (diff)
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
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/AsmPrinter/AsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 5085fd4bda..50cd24ba82 100644
--- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -681,7 +681,7 @@ static void printStringChar(raw_ostream &O, char C) {
O << "\\\"";
} else if (C == '\\') {
O << "\\\\";
- } else if (isprint(C)) {
+ } else if (isprint((unsigned char)C)) {
O << C;
} else {
switch(C) {