[clang] [clang] do not abort on u8 string in inline asm (PR #177096)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 21 03:34:54 PST 2026
================
@@ -9906,6 +9906,10 @@ let CategoryName = "Inline Assembly Issue" in {
def err_asm_operand_empty_string : Error<
"cannot use an empty string literal in 'asm'">;
+ def err_asm_string_literal_not_ordinary : Error<
+ "cannot use unicode string literal in 'asm'">;
----------------
Sirraide wrote:
Fwiw, for `asm(u"")` we *do* say ‘unicode string literal’ (or ‘wide string literal’ for `asm(L"")`), which imo is better because I don’t expect most people to know what a ‘non-ordinary string literal’ is supposed to be—can we just reuse the diagnostic that’s used for that?
https://github.com/llvm/llvm-project/pull/177096
More information about the cfe-commits
mailing list