mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[gardening] Use !empty() over size() > 0
This commit is contained in:
@@ -286,7 +286,7 @@ bool ObjectOutliner::optimizeObjectAllocation(
|
||||
ArrayRef<Operand> TailCounts = ARI->getTailAllocatedCounts();
|
||||
SILType TailType;
|
||||
unsigned NumTailElems = 0;
|
||||
if (TailCounts.size() > 0) {
|
||||
if (!TailCounts.empty()) {
|
||||
// We only support a single tail allocated array.
|
||||
if (TailCounts.size() > 1)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user