[flang-commits] [flang] af1741e - [Flang][OpenMP] Reword comment for clarification, NFC
Krzysztof Parzyszek via flang-commits
flang-commits at lists.llvm.org
Mon Jan 22 07:05:51 PST 2024
Author: Krzysztof Parzyszek
Date: 2024-01-22T09:05:44-06:00
New Revision: af1741ed40ec3a2664c50effe0d0c9bd89e60cdc
URL: https://github.com/llvm/llvm-project/commit/af1741ed40ec3a2664c50effe0d0c9bd89e60cdc
DIFF: https://github.com/llvm/llvm-project/commit/af1741ed40ec3a2664c50effe0d0c9bd89e60cdc.diff
LOG: [Flang][OpenMP] Reword comment for clarification, NFC
Added:
Modified:
flang/lib/Lower/OpenMP.cpp
Removed:
################################################################################
diff --git a/flang/lib/Lower/OpenMP.cpp b/flang/lib/Lower/OpenMP.cpp
index 3deeb6019b19bb..bebae92f2f9f0f 100644
--- a/flang/lib/Lower/OpenMP.cpp
+++ b/flang/lib/Lower/OpenMP.cpp
@@ -2318,8 +2318,9 @@ static void createBodyOfOp(
if (genNested) {
// genFIR(Evaluation&) tries to patch up unterminated blocks, causing
- // a lot of trouble if the terminator generation is delayed past this
- // point. Insert a temporary terminator here, then delete it.
+ // a lot of complications for our approach if the terminator generation
+ // is delayed past this point. Insert a temporary terminator here, then
+ // delete it.
firOpBuilder.setInsertionPointToEnd(&op.getRegion().back());
auto *temp = Fortran::lower::genOpenMPTerminator(firOpBuilder,
op.getOperation(), loc);
More information about the flang-commits
mailing list