[all-commits] [llvm/llvm-project] df5541: Reject negative trait scores during metadirective ...

Chi-Chun, Chen via All-commits all-commits at lists.llvm.org
Fri Sep 11 10:37:47 PDT 2026


  Branch: refs/heads/users/cchen/flang-metadirective-loop-reachable-paths
  Home:   https://github.com/llvm/llvm-project
  Commit: df55412c76eb414fb2e4110945c43370727e459b
      https://github.com/llvm/llvm-project/commit/df55412c76eb414fb2e4110945c43370727e459b
  Author: Chi-Chun, Chen <chichun.chen at hpe.com>
  Date:   2026-09-11 (Fri, 11 Sep 2026)

  Changed paths:
    M flang/lib/Semantics/openmp-utils.cpp
    M flang/test/Semantics/OpenMP/metadirective-common.f90

  Log Message:
  -----------
  Reject negative trait scores during metadirective recovery

Reachability analysis can rank candidates before CheckTraitScore diagnoses
invalid scores. A score of -1 wraps the initial unsigned score to zero,
causing selection to dereference a null best candidate.

Treat negative scores as absent during recovery while preserving the
existing diagnostic.



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