Skip to content

Commit 9614c01

Browse files
committed
Minor touchups per review comments.
1 parent 488b475 commit 9614c01

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

flang/lib/Lower/ConvertExpr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5383,7 +5383,7 @@ class ArrayExprLowering {
53835383
: defaultStoreToDestination(substring);
53845384
return [=](IterSpace iters) -> ExtValue { return lambda(iters); };
53855385
}
5386-
if (semant == ConstituentSemantics::CustomCopyInCopyOut) {
5386+
if (isCustomCopyInCopyOut()) {
53875387
// Create an array_modify to get the LHS element address and indicate
53885388
// the assignment, the actual assignment must be implemented in
53895389
// ccStoreToDest.

flang/lib/Optimizer/CodeGen/CodeGen.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,10 +1215,8 @@ struct EmboxCommonConversion : public FIROpConversion<OP> {
12151215

12161216
llvm::SmallVector<mlir::Value> typeparams = lenParams;
12171217
if constexpr (!std::is_same_v<BOX, fir::EmboxOp>) {
1218-
if (!box.substr().empty() && fir::hasDynamicSize(boxTy.getEleTy())) {
1219-
// TODO: is this correct?
1218+
if (!box.substr().empty() && fir::hasDynamicSize(boxTy.getEleTy()))
12201219
typeparams.push_back(box.substr()[1]);
1221-
}
12221220
}
12231221

12241222
// Write each of the fields with the appropriate values

0 commit comments

Comments
 (0)