Skip to content

Commit b33779a

Browse files
Xazax-hunGabor Horvath
authored andcommitted
[clang][analyzer] Remove a copy in a loop in VAListChecker (#162620)
Co-authored-by: Gabor Horvath <[email protected]>
1 parent 252de45 commit b33779a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/StaticAnalyzer/Checkers/VAListChecker.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ void VAListChecker::checkPreCall(const CallEvent &Call,
149149
else if (VaEnd.matches(Call))
150150
checkVAListEndCall(Call, C);
151151
else {
152-
for (auto FuncInfo : VAListAccepters) {
152+
for (const auto &FuncInfo : VAListAccepters) {
153153
if (!FuncInfo.Func.matches(Call))
154154
continue;
155155
const MemRegion *VAList =

0 commit comments

Comments
 (0)