diff options
| author | Manna, Soumi <soumi.manna@intel.com> | 2023-04-17 20:50:41 -0400 |
|---|---|---|
| committer | Manna, Soumi <soumi.manna@intel.com> | 2023-04-17 21:33:21 -0400 |
| commit | 18a3d9e5b318133611ebc88bbe82ca9a2ca56f1d (patch) | |
| tree | 2a8e6826603a2a860ef9cc5aa64e817811379b27 /llvm/lib/Support/VirtualFileSystem.cpp | |
| parent | a2e1257589bccbd9ec65a5c9e4245e31058647d4 (diff) | |
| download | llvm-18a3d9e5b318133611ebc88bbe82ca9a2ca56f1d.zip llvm-18a3d9e5b318133611ebc88bbe82ca9a2ca56f1d.tar.gz llvm-18a3d9e5b318133611ebc88bbe82ca9a2ca56f1d.tar.bz2 | |
[NFC][clang] Fix coverity static analyzer concerns about AUTO_CAUSES_COPY
Reported by Coverity:
AUTO_CAUSES_COPY
Unnecessary object copies can affect performance.
1. [NFC] Fix auto keyword use without an & causes the copy of an object of type SimpleRegistryEntry in clang::getAttributePluginInstances()
2. [NFC] Fix auto keyword use without an & causes the copy of an object of type tuple in CheckStmtInlineAttr<clang::NoInlineAttr, 2>(clang::Sema &, clang::Stmt const *, clang::Stmt const *, clang::AttributeCommonInfo const &)
3. [NFC] Fix auto keyword use without an & causes the copy of an object of type QualType in <unnamed>::SystemZTargetCodeGenInfo::isVectorTypeBased(clang::Type const *, bool)
4. [NFC] Fix auto keyword use without an & causes the copy of an object of type Policy in <unnamed>::RISCVIntrinsicManagerImpl::InitIntrinsicList()
5. [NFC] Fix auto keyword use without an & causes the copy of an object of type pair in checkUndefinedButUsed(clang::Sema &)
Reviewed By: tahonermann
Differential Revision: <https://reviews.llvm.org/D147543>
Diffstat (limited to 'llvm/lib/Support/VirtualFileSystem.cpp')
0 files changed, 0 insertions, 0 deletions
