Skip to content

Commit

Permalink
[AST] Use DenseMap::lookup (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazutakahirata committed Aug 19, 2023
1 parent 11e2975 commit f237da1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/include/clang/AST/VTableBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f237da1

Please sign in to comment.