Skip to content

Commit 273a7a8

Browse files
committed
apply suggestion
1 parent 90742f9 commit 273a7a8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

flang/lib/Lower/ConvertVariable.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -958,9 +958,8 @@ static void instantiateLocal(Fortran::lower::AbstractConverter &converter,
958958
Fortran::lower::StatementContext stmtCtx;
959959
// isUnusedEntryDummy must be computed before mapSymbolAttributes.
960960
const bool isUnusedEntryDummy =
961-
var.hasSymbol() ? Fortran::semantics::IsDummy(var.getSymbol()) &&
962-
!symMap.lookupSymbol(var.getSymbol()).getAddr()
963-
: false;
961+
var.hasSymbol() && Fortran::semantics::IsDummy(var.getSymbol()) &&
962+
!symMap.lookupSymbol(var.getSymbol()).getAddr();
964963
mapSymbolAttributes(converter, var, symMap, stmtCtx);
965964
// Do not generate code to initialize/finalize/destroy dummy arguments that
966965
// are nor part of the current ENTRY. They do not have backing storage.
@@ -1008,7 +1007,6 @@ static void instantiateLocal(Fortran::lower::AbstractConverter &converter,
10081007
"trying to deallocate entity not lowered as allocatable");
10091008
Fortran::lower::genDeallocateIfAllocated(*converterPtr, *mutableBox,
10101009
loc, sym);
1011-
10121010
});
10131011
}
10141012
}

0 commit comments

Comments
 (0)