================ @@ -0,0 +1,68 @@ +// RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm -o - %s | FileCheck %s ---------------- cooperp wrote:
Realized after i wrote the above that it's reasonable to still emit the attribute on the alloca even if the function has `sspreq` (stack-protector-all). If someone wanted to inline this cross module then I think its reasonable for the alloca to keep its attribute post-inlining, such that it opts out of the stack protector heuristic (if any) in its final function. Saying all that, i've updated the codegen test to be invoked a few different times with different command line flags to sure we always get the attributes on the alloca's as expected. https://github.com/llvm/llvm-project/pull/173311 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
