================
@@ -367,6 +385,20 @@ static unsigned ProcessCharEscape(const char *ThisTokBegin,
HadError = true;
}
+ if (!HadError && EvalMethod != StringLiteralEvalMethod::Unevaluated &&
+ Transcode && Converter) {
+ // Invalid escapes are written as '?' and then translated.
+ char ByteChar = Invalid ? '?' : ResultChar;
----------------
s-barannikov wrote:
Assert that ResultChar fits into `char` type?
https://github.com/llvm/llvm-project/pull/138895
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits