[all-commits] [llvm/llvm-project] 6c40c7: [flang][debug] Avoid redundant module info. (#161542)

Abid Qadeer via All-commits all-commits at lists.llvm.org
Fri Oct 3 02:08:56 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6c40c76c21266e1f6c20111317041cfbf7e9b4e7
      https://github.com/llvm/llvm-project/commit/6c40c76c21266e1f6c20111317041cfbf7e9b4e7
  Author: Abid Qadeer <haqadeer at amd.com>
  Date:   2025-10-03 (Fri, 03 Oct 2025)

  Changed paths:
    M flang/lib/Optimizer/Transforms/AddDebugInfo.cpp
    A flang/test/Transforms/debug-module-3.fir

  Log Message:
  -----------
  [flang][debug] Avoid redundant module info. (#161542)

Fixes https://github.com/llvm/llvm-project/issues/160907.

When a module is just being used and not defined, we generate it with
decl=true. But if the file/line fields are valid, the module is not
merged with the original and is considered different. This patch avoids
setting file/line/scope in such cases.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list