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

Jameson Nash via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 27 07:20:14 PST 2026


================
@@ -460,66 +435,31 @@ bool SSPLayoutAnalysis::requiresStackProtector(Function *F,
           if (CI->isZero())
             continue;
         }
-        if (AI->isArrayAllocation()) {
----------------
vtjnash wrote:

I assume you meant VLA (variable length array), not alloca (which don't have an element type). Yes, the clang side can easily be changed to add that heuristic.

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


More information about the cfe-commits mailing list