[clang] [clang] Fix handling of asm string literals (PR #169803)
Hubert Tong via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 7 18:00:44 PST 2026
================
@@ -260,6 +276,26 @@ ExprResult Sema::ActOnGCCAsmStmtString(Expr *Expr, bool ForAsmLabel) {
Diag(Expr->getBeginLoc(), diag::err_asm_operand_empty_string);
}
+ // The evaluated string is in the literal encoding (-fexec-charset).
+ // Convert it back to UTF-8
----------------
hubert-reinterpretcast wrote:
Minor nit:
```suggestion
// Convert it back to UTF-8.
```
https://github.com/llvm/llvm-project/pull/169803
More information about the cfe-commits
mailing list