[all-commits] [llvm/llvm-project] 764e0c: [flang][OpenMP]Replace assert with if-condition (#...

Mats Petersson via All-commits all-commits at lists.llvm.org
Tue May 13 07:37:47 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 764e0ccbba02c141b2fc8d869d58694b02119588
      https://github.com/llvm/llvm-project/commit/764e0ccbba02c141b2fc8d869d58694b02119588
  Author: Mats Petersson <mats.petersson at arm.com>
  Date:   2025-05-13 (Tue, 13 May 2025)

  Changed paths:
    M flang/lib/Semantics/check-omp-structure.cpp
    A flang/test/Semantics/OpenMP/reduction-undefined.f90

  Log Message:
  -----------
  [flang][OpenMP]Replace assert with if-condition (#139559)

If a symbol is not declared, check-omp-structure hits an assert. It
should be safe to treat undeclared symbols as "not from a block", as
they would have to be declared to be in a block...

Adding simple test to confirm it gives error messages, not crashing.

This should fix issue #131655 (there is already a check for symbol being
not null in the code identified in the ticket).



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