[flang-commits] [flang] [flang][debug] Fix issues with local variables. (PR #98661)
via flang-commits
flang-commits at lists.llvm.org
Mon Jul 15 08:16:48 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;
----------------
jeanPerier wrote:
Could you share that into a `debugInfoIsAlreadySet(globalOp.getLoc())` static helper so that there it is updated too when https://github.com/llvm/llvm-project/pull/95862 lands.
https://github.com/llvm/llvm-project/pull/98661
More information about the flang-commits
mailing list