================ @@ -238,6 +238,13 @@ void llvm::CloneFunctionInto(Function *NewFunc, const Function *OldFunc, } } + // Avoid cloning local variables of subprograms that won't be cloned. ---------------- adrian-prantl wrote:
Can you add a sentence explaining why some subprograms won't be cloned? Is it because they are inlined and a copy already exists? https://github.com/llvm/llvm-project/pull/75385 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits