aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/CodeGen/DwarfWriter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/CodeGen/DwarfWriter.cpp b/lib/CodeGen/DwarfWriter.cpp
index 5b5be545aa..1505535fbf 100644
--- a/lib/CodeGen/DwarfWriter.cpp
+++ b/lib/CodeGen/DwarfWriter.cpp
@@ -942,7 +942,7 @@ void DIE::AddChild(DIE *Child) {
//===----------------------------------------------------------------------===//
-/// DWContext
+/// DwarfWriter
//===----------------------------------------------------------------------===//
@@ -1103,9 +1103,9 @@ void DwarfWriter::EmitString(const std::string &String) const {
case '\t': O << "\\t"; break;
default:
O << '\\';
- O << char('0' + (C >> 6));
- O << char('0' + (C >> 3));
- O << char('0' + (C >> 0));
+ O << char('0' + ((C >> 6) & 7));
+ O << char('0' + ((C >> 3) & 7));
+ O << char('0' + ((C >> 0) & 7));
break;
}
} else if (C == '\"') {