[llvm-branch-commits] [clang] Add ParserConversionAction (PR #169803)
Abhina Sree via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri May 29 12:46:13 PDT 2026
================
@@ -8120,7 +7838,13 @@ bool CheckFormatHandler::HandleInvalidConversionSpecifier(
keepGoing = false;
}
- StringRef Specifier(csStart, csLen);
+ // The csStart points to a character that has already been converted to the
+ // exec charset, so we have to reverse the conversion to allow diagnostic
+ // message to match an expected value when using -verify option,
+ std::string RS(csStart, csLen);
+ for (unsigned int i = 0; i < RS.size(); ++i)
+ RS[i] = FormatStrConverter.convert(RS[i]);
+ StringRef Specifier(RS);
----------------
abhina-sree wrote:
Thanks, I fixed this in the other PR https://github.com/llvm/llvm-project/pull/196568
https://github.com/llvm/llvm-project/pull/169803
More information about the llvm-branch-commits
mailing list