aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/VMCore/AsmWriter.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp
index f16ae08ef1..93b69b913e 100644
--- a/lib/VMCore/AsmWriter.cpp
+++ b/lib/VMCore/AsmWriter.cpp
@@ -252,17 +252,17 @@ static void PrintLLVMName(std::ostream &OS, const ValueName *Name,
} else if (isprint(C)) {
OS << C;
} else {
- OS << "\\";
+ OS << '\\';
char hex1 = (C >> 4) & 0x0F;
if (hex1 < 10)
- OS << (hex1 + '0');
+ OS << (char)(hex1 + '0');
else
- OS << (hex1 - 10 + 'A');
+ OS << (char)(hex1 - 10 + 'A');
char hex2 = C & 0x0F;
if (hex2 < 10)
- OS << (hex2 + '0');
+ OS << (char)(hex2 + '0');
else
- OS << (hex2 - 10 + 'A');
+ OS << (char)(hex2 - 10 + 'A');
}
}
OS << '"';