summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
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
commit1f9053a83ca977645ba3e005a60072cba59fcc22 (patch)
treeb2b435aa64b46a408e5d279da809cd24adaf4802 /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
parentd7fb85e8ad6f006537cd2eb2dfaba38268fb794f (diff)
downloadbcm5719-llvm-1f9053a83ca977645ba3e005a60072cba59fcc22.tar.gz
bcm5719-llvm-1f9053a83ca977645ba3e005a60072cba59fcc22.zip
do not sign extend characters input to isprint. This improves
compatibility with VC++. Patch by Max Burke! llvm-svn: 62813
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 5085fd4bdab..50cd24ba822 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/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) {
OpenPOWER on IntegriCloud