[clang] [llvm] [Clang][SME] Detect always_inline used with mismatched streaming attributes (PR #77936)

Sander de Smalen via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 26 09:21:37 PST 2024


================
@@ -279,6 +279,12 @@ def err_builtin_needs_feature : Error<"%0 needs target feature %1">;
 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_function_always_inline_attribute_mismatch : Error<
+  "always_inline function %1 and its caller %0 have mismatched %2 attributes">;
----------------
sdesmalen-arm wrote:

```suggestion
  "always_inline function %1 and its caller %0 have mismatching %2 attributes">;
```

https://github.com/llvm/llvm-project/pull/77936


More information about the cfe-commits mailing list