Skip to content

Commit c81ff8b

Browse files
[Analysis] Use DenseMap::lookup (NFC)
1 parent 25ac7a0 commit c81ff8b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

clang/lib/Analysis/UnsafeBufferUsage.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -895,10 +895,7 @@ class DeclUseTracker {
895895
}
896896

897897
const DeclStmt *lookupDecl(const VarDecl *VD) const {
898-
auto It = Defs.find(VD);
899-
if (It == Defs.end())
900-
return nullptr;
901-
return It->second;
898+
return Defs.lookup(VD);
902899
}
903900
};
904901
} // namespace

0 commit comments

Comments
 (0)