diff options
author | Manna, Soumi <soumi.manna@intel.com> | 2023-05-05 14:11:25 -0700 |
---|---|---|
committer | Manna, Soumi <soumi.manna@intel.com> | 2023-05-05 14:34:36 -0700 |
commit | 07996804a0c0290a4ee5d964a94333894c7792c2 (patch) | |
tree | 203f378ee40855ab76ddde17489bda7eb4045a22 /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp | |
parent | d2540186eb1a12390118ca356a397ba6193bb2a3 (diff) | |
download | llvm-07996804a0c0290a4ee5d964a94333894c7792c2.zip llvm-07996804a0c0290a4ee5d964a94333894c7792c2.tar.gz llvm-07996804a0c0290a4ee5d964a94333894c7792c2.tar.bz2 |
[NFC] ][CLANG] Fix static code analyzer concerns
Reported by Coverity:
1. Inside "ASTReader.cpp" file, in clang::ASTReader::FindExternalLexicalDecls(clang::DeclContext const *, llvm::function_ref<bool (clang::Decl::Kind)>, llvm::SmallVectorImpl<clang::Decl *> &): Using the auto keyword without an & causes a copy.
auto_causes_copy: Using the auto keyword without an & causes the copy of an object of type pair.
2. Inside "ASTReader.cpp" file, in clang::ASTReader::ReadAST(llvm::StringRef, clang::serialization::ModuleKind, clang::SourceLocation, unsigned int, llvm::SmallVectorImpl<clang::ASTReader::ImportedSubmodule> *): Using the auto keyword without an & causes a copy.
auto_causes_copy: Using the auto keyword without an & causes the copy of an object of type DenseMapPair.
3. Inside "CGOpenMPRuntimeGPU.cpp" file, in clang::CodeGen::CGOpenMPRuntimeGPU::emitGenericVarsEpilog(clang::CodeGen::CodeGenFunction &, bool): Using the auto keyword without an & causes a copy.
auto_causes_copy: Using the auto keyword without an & causes the copy of an object of type pair.
4. Inside "ASTWriter.cpp" file, in clang::ASTWriter::WriteHeaderSearch(clang::HeaderSearch const &): Using the auto keyword without an & causes a copy.
auto_causes_copy: Using the auto keyword without an & causes the copy of an object of type UnresolvedHeaderDirective.
Reviewed By: tahonermann
Differential Revision: https://reviews.llvm.org/D149461
Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions