Skip to content

Commit e0c862f

Browse files
committed
Remove uses of llvm::empty
It's deprecated in rebranch
1 parent 8ca0143 commit e0c862f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/swift/SILOptimizer/Analysis/ClosureScope.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ class ClosureFunctionOrder {
173173

174174
ArrayRef<SILFunction *> getTopDownFunctions() const {
175175
assert(!topDownFunctions.empty()
176-
|| llvm::empty(csa->getModule()->getFunctions()));
176+
|| csa->getModule()->getFunctions().empty());
177177
return topDownFunctions;
178178
}
179179

lib/AST/Attr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ static void printDifferentiableAttrArguments(
689689
return false;
690690
return true;
691691
});
692-
if (!llvm::empty(requirementsToPrint)) {
692+
if (!requirementsToPrint.empty()) {
693693
if (!isLeadingClause)
694694
stream << ' ';
695695
stream << "where ";

0 commit comments

Comments
 (0)