Fix a bug in ConvertAsmString function.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47618 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/CodeGen/CGStmt.cpp b/CodeGen/CGStmt.cpp
index 0da91da..5fdc61b 100644
--- a/CodeGen/CGStmt.cpp
+++ b/CodeGen/CGStmt.cpp
@@ -569,7 +569,7 @@
}
Result += '$' + llvm::utostr(n);
- Start = End;
+ Start = End - 1;
} else if (isalpha(EscapedChar)) {
char *End;
@@ -583,7 +583,7 @@
}
Result += "${" + llvm::utostr(n) + ':' + EscapedChar + '}';
- Start = End;
+ Start = End - 1;
} else {
assert(0 && "Unhandled asm escaped character!");
}