Skip to content

Commit

Permalink
use "!empty()" instead of "size()", since it is more specific. NFC.
Browse files Browse the repository at this point in the history
  • Loading branch information
lattner committed Mar 7, 2016
1 parent 6cdf09e commit e6dccda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/SILOptimizer/IPO/CapturePromotion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@ constructClonedFunction(PartialApplyInst *PAI, FunctionRefInst *FRI,
auto genericSig = F->getLoweredFunctionType()->getGenericSignature();
auto *genericParams = F->getContextGenericParams();

if (ApplySubs.size()) {
if (!ApplySubs.empty()) {
InterfaceSubs = genericSig->getSubstitutionMap(ApplySubs);
ContextSubs = genericParams->getSubstitutionMap(ApplySubs);
} else {
Expand Down

0 comments on commit e6dccda

Please sign in to comment.