[clang] [llvm] [SSP] Add llvm.ssp.protected intrinsic for QualType-based stack protection (PR #183623)

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 27 00:06:03 PST 2026


================
@@ -1587,6 +1587,13 @@ def int_annotation : DefaultAttrsIntrinsic<
     [LLVMMatchType<0>, llvm_anyptr_ty, LLVMMatchType<1>, llvm_i32_ty],
     [IntrInaccessibleMemOnly]>;
 
+// SSP buffer protection marker. Emitted by clang on allocas whose QualType
+// contains a protectable array when SSP is enabled. The StackProtector pass
+// uses this instead of IR-level type analysis.
+def int_ssp_protected : DefaultAttrsIntrinsic<
+    [], [llvm_ptr_ty],
----------------
arsenm wrote:

Do not use llvm_ptr_ty, only use llvm_anyptr_ty 

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


More information about the cfe-commits mailing list