Skip to content

Commit f237da1

Browse files
[AST] Use DenseMap::lookup (NFC)
1 parent 11e2975 commit f237da1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/include/clang/AST/VTableBuilder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ class VTableLayout {
279279

280280
AddressPointLocation getAddressPoint(BaseSubobject Base) const {
281281
assert(AddressPoints.count(Base) && "Did not find address point!");
282-
return AddressPoints.find(Base)->second;
282+
return AddressPoints.lookup(Base);
283283
}
284284

285285
const AddressPointsMapTy &getAddressPoints() const {

0 commit comments

Comments
 (0)