[clang] [clang] Fix handling of asm string literals (PR #169803)
Hubert Tong via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 7 07:09:46 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) {
----------------
hubert-reinterpretcast wrote:
If we don't want to make it look like this is something that applies for other platforms, we can name it `getzOSFromAsmLiteralEncodingConverter`.
https://github.com/llvm/llvm-project/pull/169803
More information about the cfe-commits
mailing list