Skip to content

Commit 73855c0

Browse files
committed
handle review comments
1 parent 067f4c7 commit 73855c0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

flang/lib/Lower/OpenMP/DataSharingProcessor.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -557,9 +557,8 @@ void DataSharingProcessor::doPrivatize(const semantics::Symbol *sym,
557557
: firOpBuilder.createConvert(
558558
cloneAddr.getLoc(), symType, cloneAddr);
559559

560-
auto yieldOp = firOpBuilder.create<mlir::omp::YieldOp>(
561-
hsb.getAddr().getLoc(), yieldedValue);
562-
yieldOp.getOperand(0).getType();
560+
firOpBuilder.create<mlir::omp::YieldOp>(hsb.getAddr().getLoc(),
561+
yieldedValue);
563562
symTable->popScope();
564563
}
565564

mlir/test/Target/LLVMIR/openmp-private.mlir

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,10 @@ omp.private {type = firstprivate} @_QFequivalenceEx_firstprivate_ptr_f32 : !llvm
263263
}
264264

265265
// CHECK: define internal void @_QPequivalence..omp_par
266+
// CHECK-NOT: define {{.*}} @{{.*}}
266267
// CHECK: %[[PRIV_ALLOC:.*]] = alloca float, i64 1, align 4
267268
// CHECK: %[[HOST_VAL:.*]] = load float, ptr %{{.*}}, align 4
268-
// Test that we initialzie the firstprivate variable.
269+
// Test that we initialize the firstprivate variable.
269270
// CHECK: store float %[[HOST_VAL]], ptr %[[PRIV_ALLOC]], align 4
270271
// Test that we inlined the body of the parallel region.
271272
// CHECK: store float 0x{{.*}}, ptr %[[PRIV_ALLOC]], align 4

0 commit comments

Comments
 (0)