Skip to content

Commit e8ba0cf

Browse files
[Sema] Use llvm::all_of (NFC)
We can pass a range to llvm::all_of.
1 parent e51ea1c commit e8ba0cf

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)