[Lldb-commits] [lldb] 61d8da3 - [lldb] Replace countPopulation with popcount after D153686
Fangrui Song via lldb-commits
lldb-commits at lists.llvm.org
Thu Jul 6 20:26:26 PDT 2023
Author: Fangrui Song
Date: 2023-07-06T20:26:23-07:00
New Revision: 61d8da327cab76932e8236bbf03543c9b3f7864c
URL: https://github.com/llvm/llvm-project/commit/61d8da327cab76932e8236bbf03543c9b3f7864c
DIFF: https://github.com/llvm/llvm-project/commit/61d8da327cab76932e8236bbf03543c9b3f7864c.diff
LOG: [lldb] Replace countPopulation with popcount after D153686
Added:
Modified:
lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_ppc64le.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_ppc64le.cpp b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_ppc64le.cpp
index cb6f81b28f7cc8..29f32e97f23296 100644
--- a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_ppc64le.cpp
+++ b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_ppc64le.cpp
@@ -651,7 +651,7 @@ NativeRegisterContextLinux_ppc64le::GetWatchpointSize(uint32_t wp_index) {
unsigned control = (m_hwp_regs[wp_index].control >> 5) & 0xff;
if (llvm::isPowerOf2_32(control + 1)) {
- return llvm::countPopulation(control);
+ return llvm::popcount(control);
}
return 0;
More information about the lldb-commits
mailing list