[clang] [llvm] Enable fexec-charset option (PR #138895)
Sergei Barannikov via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 6 00:08:24 PST 2026
================
@@ -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
More information about the cfe-commits
mailing list