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

Tom Eccles via flang-commits flang-commits at lists.llvm.org
Mon Oct 21 03:08:30 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);
----------------
tblah wrote:

I agree it can be replaced by an assertion

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


More information about the flang-commits mailing list