Skip to content

Commit e1e750a

Browse files
committed
[SILInliner] NFC: Clarified conditional.
Made it clear that one code path was to be followed if -enable-experimental-lexical-lifetimes was passed and an entirely different one was to be followed otherwise.
1 parent 90ab382 commit e1e750a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/SILOptimizer/Utils/SILInliner.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,8 +436,9 @@ SILInlineCloner::cloneInline(ArrayRef<SILValue> AppliedArgs) {
436436
SILValue callArg = p.value();
437437
unsigned idx = p.index();
438438
if (idx >= calleeConv.getSILArgIndexOfFirstParam()) {
439-
if (Apply.getFunction()->hasOwnership() && enableLexicalLifetimes) {
440-
if (!callArg->getType().isTrivial(*Apply.getFunction()) &&
439+
if (enableLexicalLifetimes) {
440+
if (Apply.getFunction()->hasOwnership() &&
441+
!callArg->getType().isTrivial(*Apply.getFunction()) &&
441442
!callArg->getType().isAddress()) {
442443
SILBuilderWithScope builder(Apply.getInstruction(), getBuilder());
443444
if (calleeConv.getParamInfoForSILArg(idx).isGuaranteed()) {

0 commit comments

Comments
 (0)