[clang] [Clang][attr] Add 'cfi_salt' attribute (PR #141846)

Bill Wendling via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 4 12:58:23 PDT 2025


================
@@ -7941,6 +7942,32 @@ static bool handleFunctionTypeAttr(TypeProcessingState &state, ParsedAttr &attr,
     return true;
   }
 
+  if (attr.getKind() == ParsedAttr::AT_CFISalt) {
+    if (attr.getNumArgs() == 0)
----------------
bwendling wrote:

In fact, it's checked elsewhere, so I'll simply remove it. No need for argument number checking here or an assert.

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


More information about the cfe-commits mailing list