Skip to content

Commit c080702

Browse files
committed
suppress false-positive in shared_ptr
llvm/llvm-project#60896 Change-Id: I914b654c53a2e134ce219ce634dc94ded9353a20
1 parent dcb7a84 commit c080702

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cpucounters.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8760,6 +8760,8 @@ std::vector<int> enumeratePerfPMUs(const std::string & type, int max_id)
87608760
return ids;
87618761
}
87628762

8763+
#ifndef __clang_analyzer__
8764+
87638765
void populatePerfPMUs(unsigned socket_, const std::vector<int> & ids, std::vector<UncorePMU> & pmus, bool fixed, bool filter0, bool filter1)
87648766
{
87658767
for (const auto & id : ids)
@@ -8836,6 +8838,8 @@ void populatePerfPMUs(unsigned socket_, const std::vector<int>& ids, std::vector
88368838
}
88378839
}
88388840

8841+
#endif // __clang_analyzer__
8842+
88398843
std::vector<std::pair<int, uint32> > enumerateIDXPerfPMUs(const std::string & type, int max_id)
88408844
{
88418845
uint32 numaNode=0xff;

0 commit comments

Comments
 (0)