[clang] [Clang] Avoid crash with wide string CPU builtin argument (PR #245515)
Shengxin Pei via cfe-commits
cfe-commits at lists.llvm.org
Sun Nov 29 01:20:06 PST 2026
================
@@ -897,6 +897,8 @@ def err_arm_invalid_specialreg : Error<"invalid special register for builtin">;
def err_arm_invalid_coproc : Error<"coprocessor %0 must be configured as "
"%select{GCP|CDE}1">;
def warn_invalid_cpu_supports : Warning<"invalid cpu feature string for builtin">;
+def err_cpu_builtin_string_literal_char_width : Error<
+ "CPU builtin argument must be a narrow string literal">;
----------------
TPPPP72 wrote:
Could you tell me why, even though a new diagnostic was defined here and you did launch it, the diagnostic in the test file doesn't match the one you added?
https://github.com/llvm/llvm-project/pull/245515
More information about the cfe-commits
mailing list