[clang] [NFC][Clang] Fix Static Code Analysis Concerns with copy without assign (PR #75091)

Tom Honermann via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 22 08:47:36 PST 2023


https://github.com/tahonermann requested changes to this pull request.

I think the static analysis tool is confused here. The `SVEType` class doesn't actually have a user-declared copy constructor. It does have a constructor that delegates to the implicitly declared copy constructor though. The class members are all scalar types, so the implicitly declared copy constructor and assignment operator will both behave as expected.

I recommend triaging the static analysis report as a false positive and not making a source code change.

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


More information about the cfe-commits mailing list