[flang-commits] [flang] [llvm] Fixing the location attribute added	to mapInfoOp (PR #90764)
    Anchu Rajendran S via flang-commits 
    flang-commits at lists.llvm.org
       
    Wed May 22 23:54:40 PDT 2024
    
    
  
================
@@ -903,9 +903,12 @@ bool ClauseProcessor::processMap(
           // Explicit map captures are captured ByRef by default,
           // optimisation passes may alter this to ByCopy or other capture
           // types to optimise
+          auto location = mlir::NameLoc::get(
+              mlir::StringAttr::get(firOpBuilder.getContext(), asFortran.str()),
+              symAddr.getLoc());
           mlir::Value mapOp = createMapInfoOp(
-              firOpBuilder, clauseLocation, symAddr, mlir::Value{},
-              asFortran.str(), bounds, {},
+              firOpBuilder, location, symAddr, mlir::Value{}, asFortran.str(),
+              bounds, {},
----------------
anchuraj wrote:
Hi @skatrak , Thank you for reviewing the change. This was introduced in a later commit. My merge from main , merged those changes
https://github.com/llvm/llvm-project/pull/90764
    
    
More information about the flang-commits
mailing list