unbreak the CBE on treeadd an many others.
authorChris Lattner <sabre@nondot.org>
Thu, 21 Aug 2008 05:51:43 +0000 (05:51 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 21 Aug 2008 05:51:43 +0000 (05:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55112 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/CBackend/CBackend.cpp

index f3de1906cd5f9ac0faa22292b128341ca2f695b0..456bda34e733b8aee7d44631282bc67c3105dfb0 100644 (file)
@@ -773,9 +773,9 @@ void CWriter::printConstantArray(ConstantArray *CPA, bool Static) {
       if (isprint(C) && (!LastWasHex || !isxdigit(C))) {
         LastWasHex = false;
         if (C == '"' || C == '\\')
-          Out << "\\" << C;
+          Out << "\\" << (char)C;
         else
-          Out << C;
+          Out << (char)C;
       } else {
         LastWasHex = false;
         switch (C) {