[flang] [llvm] Fixing the location attribute added to mapInfoOp (PR #90764)

Anchu Rajendran S via llvm-commits llvm-commits at lists.llvm.org
Thu May 2 07:55:34 PDT 2024


================
@@ -1644,11 +1644,14 @@ genTargetOp(Fortran::lower::AbstractConverter &converter,
         } else if (!fir::isa_builtin_cptr_type(eleType)) {
           mapFlag |= llvm::omp::OpenMPOffloadMappingFlags::OMP_MAP_TO;
           mapFlag |= llvm::omp::OpenMPOffloadMappingFlags::OMP_MAP_FROM;
-        }
-
+        };
+        auto context = converter.getFirOpBuilder().getContext();
----------------
anchuraj wrote:

Thank you for reviewing my PR. I missed the exiting variable. Implemented the suggestion 

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


More information about the llvm-commits mailing list