Skip to content

Commit 73e8ada

Browse files
[Sema] Use llvm::all_of (NFC) (#149256)
We can pass a range to llvm::all_of.
1 parent 96bde11 commit 73e8ada

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/Sema/AnalysisBasedWarnings.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -522,8 +522,7 @@ static bool areAllValuesNoReturn(const VarDecl *VD, const CFGBlock &VarBlk,
522522
}
523523

524524
// If all checked blocks satisfy the condition, the check is finished.
525-
if (std::all_of(BlocksToCheck.begin(), BlocksToCheck.end(),
526-
BlockSatisfiesCondition))
525+
if (llvm::all_of(BlocksToCheck, BlockSatisfiesCondition))
527526
return true;
528527

529528
// If this block does not contain the variable definition, check

0 commit comments

Comments
 (0)