[flang-commits] [flang] [flang][debug] Fix issues with local variables. (PR #98661)

Abid Qadeer via flang-commits flang-commits at lists.llvm.org
Tue Jul 16 03:10:16 PDT 2024


================
@@ -139,6 +146,8 @@ mlir::LLVM::DIModuleAttr AddDebugInfoPass::getOrCreateModuleAttr(
 void AddDebugInfoPass::handleGlobalOp(fir::GlobalOp globalOp,
                                       mlir::LLVM::DIFileAttr fileAttr,
                                       mlir::LLVM::DIScopeAttr scope) {
+  if (mlir::isa<mlir::FusedLoc>(globalOp.getLoc()))
+    return;
----------------
abidh wrote:

Done.

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


More information about the flang-commits mailing list