================
@@ -199,6 +199,9 @@ static Instruction
*simplifyAllocaArraySize(InstCombinerImpl &IC,
nullptr, AI.getName());
New->setAlignment(AI.getAlign());
New->setUsedWithInAlloca(AI.isUsedWithInAlloca());
+ // It is the same allocation, so it keeps what was said about it, e.g.
+ // "stack-protector".
+ New->copyMetadata(AI);
----------------
PanTao2 wrote:
I split this into https://github.com/llvm/llvm-project/pull/231073.
https://github.com/llvm/llvm-project/pull/225626
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits