aboutsummaryrefslogtreecommitdiff
path: root/lib/Format/Encoding.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Format/Encoding.h')
-rw-r--r--lib/Format/Encoding.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Format/Encoding.h b/lib/Format/Encoding.h
index 766d29274ce6..592d7201a8ac 100644
--- a/lib/Format/Encoding.h
+++ b/lib/Format/Encoding.h
@@ -135,7 +135,7 @@ inline unsigned getEscapeSequenceLength(StringRef Text) {
++I;
return I;
}
- return 2;
+ return 1 + getNumBytesForUTF8(Text[1]);
}
}