Skip to content

Commit 989e86f

Browse files
committed
---
yaml --- r: 349247 b: refs/heads/master-next c: c377e8b h: refs/heads/master i: 349245: 1400460 349243: 827a9da 349239: 5aeec19 349231: 21fb095 349215: a536b9a 349183: 6bc6df8
1 parent 66233dc commit 989e86f

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: 3574c513bbc5578dd9346b4ea9ab5995c5927bb5
3-
refs/heads/master-next: 14453147d6182073ab1011fc4cf6a7271f42777f
3+
refs/heads/master-next: c377e8b72c4214a87b076d4b14ee3f6a478149c5
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
66
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-b: 66d897bfcf64a82cb9a87f5e663d889189d06d07

branches/master-next/lib/Demangling/NodePrinter.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,11 @@ static DemanglerPrinter &operator<<(DemanglerPrinter &printer,
7979
case '\n': printer << "\\n"; break;
8080
case '\r': printer << "\\r"; break;
8181
case '"': printer << "\\\""; break;
82-
case '\'': printer << '\''; break; // no need to escape these
8382
case '\0': printer << "\\0"; break;
8483
default:
85-
auto c = static_cast<char>(C);
86-
// Other ASCII control characters should get escaped.
87-
if (c < 0x20 || c == 0x7F) {
84+
auto c = static_cast<unsigned char>(C);
85+
// Other control or high-bit characters should get escaped.
86+
if (c < 0x20 || c >= 0x7F) {
8887
static const char Hexdigit[] = {
8988
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
9089
'A', 'B', 'C', 'D', 'E', 'F'

0 commit comments

Comments
 (0)