[clang] [Clang]Throw frontend error for target feature mismatch when using `flatten` attribute (PR #150044)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 21 07:10:48 PDT 2025
================
@@ -287,6 +287,10 @@ def err_function_needs_feature : Error<
"always_inline function %1 requires target feature '%2', but would "
"be inlined into function %0 that is compiled without support for '%2'">;
+def err_flatten_function_needs_feature
+ : Error<"flatten function %0 calls %1 which requires target feature '%2', "
+ "but the caller is compiled without support for '%2'">;
----------------
AaronBallman wrote:
@efriedma-quic at what point should we consider making `DiagnosticCodeGenKinds.td`? The diagnostics for codegen seem to be sprinkled all over the place.
https://github.com/llvm/llvm-project/pull/150044
More information about the cfe-commits
mailing list