[clang] f237da1 - [AST] Use DenseMap::lookup (NFC)
Kazu Hirata via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 18 23:53:03 PDT 2023
Author: Kazu Hirata
Date: 2023-08-18T23:52:57-07:00
New Revision: f237da1a2f6b89d8a832d37d64fb57795bfa7b9a
URL: https://github.com/llvm/llvm-project/commit/f237da1a2f6b89d8a832d37d64fb57795bfa7b9a
DIFF: https://github.com/llvm/llvm-project/commit/f237da1a2f6b89d8a832d37d64fb57795bfa7b9a.diff
LOG: [AST] Use DenseMap::lookup (NFC)
Added:
Modified:
clang/include/clang/AST/VTableBuilder.h
Removed:
################################################################################
diff --git a/clang/include/clang/AST/VTableBuilder.h b/clang/include/clang/AST/VTableBuilder.h
index 1bf7d0467aa3fb..fbf6c041a1ec11 100644
--- a/clang/include/clang/AST/VTableBuilder.h
+++ b/clang/include/clang/AST/VTableBuilder.h
@@ -279,7 +279,7 @@ class VTableLayout {
AddressPointLocation getAddressPoint(BaseSubobject Base) const {
assert(AddressPoints.count(Base) && "Did not find address point!");
- return AddressPoints.find(Base)->second;
+ return AddressPoints.lookup(Base);
}
const AddressPointsMapTy &getAddressPoints() const {
More information about the cfe-commits
mailing list