[all-commits] [llvm/llvm-project] 2f33b0: [flang] Ensure lowering diagnostic handler does no...

Razvan Lupusoru via All-commits all-commits at lists.llvm.org
Fri Aug 1 09:27:58 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2f33b01651b1041682bab363e556ff1a396262fc
      https://github.com/llvm/llvm-project/commit/2f33b01651b1041682bab363e556ff1a396262fc
  Author: Razvan Lupusoru <razvan.lupusoru at gmail.com>
  Date:   2025-08-01 (Fri, 01 Aug 2025)

  Changed paths:
    M flang/include/flang/Lower/Bridge.h
    M flang/include/flang/Lower/LoweringOptions.def
    M flang/lib/Lower/Bridge.cpp

  Log Message:
  -----------
  [flang] Ensure lowering diagnostic handler does not outlive lowering (#151608)

When the LoweringBridge is created, it registers an MLIR Diagnostics
handler with the MLIRContext. However, it never deregisters it once
lowering is finished.

This fixes this particular scenario. It also makes it so that the
Diagnostics handler is optional.



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