[all-commits] [llvm/llvm-project] e06920: [ADT] Implement DenseSetImpl::contains in terms of...
Kazu Hirata via All-commits
all-commits at lists.llvm.org
Wed Aug 27 08:28:54 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e06920e32452487c571e475fc6fc0917e3245e30
https://github.com/llvm/llvm-project/commit/e06920e32452487c571e475fc6fc0917e3245e30
Author: Kazu Hirata <kazu at google.com>
Date: 2025-08-27 (Wed, 27 Aug 2025)
Changed paths:
M llvm/include/llvm/ADT/DenseSet.h
Log Message:
-----------
[ADT] Implement DenseSetImpl::contains in terms of DenseMap::contains (NFC) (#155551)
DenseSetImpl::contains can directly use DenseMap::contains.
While I am at it, this patch moves count() immediately after
contains() and annotates both functions with [[nodiscard].
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list