[clang] [clang] Fix handling of asm string literals (PR #169803)
Corentin Jabot via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 7 07:27:38 PST 2026
================
@@ -245,6 +249,18 @@ ExprResult Sema::ActOnGCCAsmStmtString(Expr *Expr, bool ForAsmLabel) {
Diag(Expr->getBeginLoc(), diag::err_asm_operand_empty_string)
<< SL->getSourceRange();
}
+
+ if (!IsConstexpr &&
+ PP.getTextEncoding().getFromIBM1047Converter() != nullptr) {
----------------
cor3ntin wrote:
> If we don't want to make it look like this is something that applies for other platforms, we can name it getzOSFromAsmLiteralEncodingConverter.
Sold!
https://github.com/llvm/llvm-project/pull/169803
More information about the cfe-commits
mailing list