summaryrefslogtreecommitdiff
path: root/clang-tools-extra/pseudo
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2023-01-22 12:48:51 -0800
committerKazu Hirata <kazu@google.com>2023-01-22 12:48:51 -0800
commitcaa99a01f5dd2f865df318a2f93abc811273a25d (patch)
tree1c848ea5a64f404c933aec6b396eed33a43bf885 /clang-tools-extra/pseudo
parent0b5cb41dd07cc7cde9330d6098ebd74387f3df7f (diff)
downloadllvm-caa99a01f5dd2f865df318a2f93abc811273a25d.tar.gz
Use llvm::popcount instead of llvm::countPopulation(NFC)
Diffstat (limited to 'clang-tools-extra/pseudo')
-rw-r--r--clang-tools-extra/pseudo/include/clang-pseudo/grammar/LRTable.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/pseudo/include/clang-pseudo/grammar/LRTable.h b/clang-tools-extra/pseudo/include/clang-pseudo/grammar/LRTable.h
index 9fc4689da22b..1706b6936c9e 100644
--- a/clang-tools-extra/pseudo/include/clang-pseudo/grammar/LRTable.h
+++ b/clang-tools-extra/pseudo/include/clang-pseudo/grammar/LRTable.h
@@ -226,7 +226,7 @@ private:
// Count the number of values since the checkpoint.
Word BelowKeyMask = KeyMask - 1;
unsigned CountSinceCheckpoint =
- llvm::countPopulation(HasValue[KeyWord] & BelowKeyMask);
+ llvm::popcount(HasValue[KeyWord] & BelowKeyMask);
// Find the value relative to the last checkpoint.
return Values[Checkpoints[KeyWord] + CountSinceCheckpoint];
}