================
@@ -1294,6 +1294,9 @@ class AllocaSlices::SliceBuilder : public 
PtrUseVisitor<SliceBuilder> {
       return;
     }
 
+    if (II.getIntrinsicID() == Intrinsic::ssp_protected)
+      return markAsDead(II); // Drop when alloca is promoted/sliced.
----------------
phyBrackets wrote:

Could you add a test with an alloca that SROA splits but doesn't fully promote, 
to verify the behavior is acceptable?

https://github.com/llvm/llvm-project/pull/183623
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to