summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/MicrosoftMangle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/AST/MicrosoftMangle.cpp')
-rw-r--r--clang/lib/AST/MicrosoftMangle.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/AST/MicrosoftMangle.cpp b/clang/lib/AST/MicrosoftMangle.cpp
index 9dfd2af8bb6..5510f96596f 100644
--- a/clang/lib/AST/MicrosoftMangle.cpp
+++ b/clang/lib/AST/MicrosoftMangle.cpp
@@ -2421,9 +2421,8 @@ void MicrosoftMangleContextImpl::mangleStringLiteral(const StringLiteral *SL,
if ((Byte >= 'a' && Byte <= 'z') || (Byte >= 'A' && Byte <= 'Z') ||
(Byte >= '0' && Byte <= '9') || Byte == '_' || Byte == '$') {
Mangler.getStream() << Byte;
- } else if (Byte >= '\xe1' && Byte <= '\xfa') {
- Mangler.getStream() << '?' << static_cast<char>('a' + (Byte - '\xe1'));
- } else if (Byte >= '\xc1' && Byte <= '\xda') {
+ } else if ((Byte >= '\xe1' && Byte <= '\xfa') ||
+ (Byte >= '\xc1' && Byte <= '\xda')) {
Mangler.getStream() << '?' << static_cast<char>('A' + (Byte - '\xc1'));
} else {
switch (Byte) {
OpenPOWER on IntegriCloud