[flang-commits] [flang] [flang][OpenMP] Error out when CHARACTER type is used in atomic constructs (PR #113045)

via flang-commits flang-commits at lists.llvm.org
Mon Oct 21 07:13:00 PDT 2024


================
@@ -128,6 +128,7 @@ static void processOmpAtomicTODO(mlir::Type elementType,
                              Fortran::parser::OmpAtomicClauseList>()) {
     // Based on assertion for supported element types in OMPIRBuilder.cpp
     // createAtomicRead
+    // TODO: Enumerate remaining unsupported types for atomics
     mlir::Type unwrappedEleTy = fir::unwrapRefType(elementType);
     bool supportedAtomicType = fir::isa_trivial(unwrappedEleTy);
----------------
NimishMishra wrote:

Just so I understand it correctly, should we replace the current checks in this function with an unconditional assertion? Or should I let `isa_trivial` check be as it is?

https://github.com/llvm/llvm-project/pull/113045


More information about the flang-commits mailing list