Skip to content

Commit aa46750

Browse files
committed
fix UB
1 parent b212770 commit aa46750

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang-tools-extra/clang-tidy/performance/LostStdMoveCheck.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ void LostStdMoveCheck::check(const MatchFinder::MatchResult &Result) {
174174

175175
// Calculate X usage count in the statement
176176
llvm::SmallPtrSet<const DeclRefExpr *, 16> DeclRefs;
177-
ArrayRef<BoundNodes> Matches = match(
177+
178+
SmallVector<BoundNodes, 1> Matches = match(
178179
findAll(declRefExpr(
179180

180181
to(varDecl(equalsNode(MatchedDecl))),

0 commit comments

Comments
 (0)