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; _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits