Fixes escapeing bug in strings.  Fixes test case test/Regression/CBackend/2002-11-06-PrintEscaped.c


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4583 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp
index cdbe62d..0e274c7 100644
--- a/lib/Target/CBackend/CBackend.cpp
+++ b/lib/Target/CBackend/CBackend.cpp
@@ -297,8 +297,8 @@
         (unsigned char)cast<ConstantUInt>(CPA->getOperand(i))->getValue();
       
       if (isprint(C)) {
-        if (C == '"')
-          Out << "\\\"";
+        if (C == '"' || C == '\\')
+          Out << "\\" << C;
         else
           Out << C;
       } else {