[clang] [clang][CodeGen] Allow memcpy replace with trivial auto var init (PR #84230)

Antonio Frighetto via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 6 14:57:15 PST 2024


antoniofrighetto wrote:

I think manually checking if `TrivialAutoVarInit` is set (to `Pattern`?) may be a better fix, as there was only [one codepath](https://github.com/llvm/llvm-project/blob/main/clang/lib/CodeGen/CGDecl.cpp#L1972-L1974) in which we were not checking this.

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


More information about the cfe-commits mailing list