[all-commits] [llvm/llvm-project] ebf530: [Flang][OpenMP] NFC: Use ConstructQueue::const_ite...

Sergio Afonso via All-commits all-commits at lists.llvm.org
Mon Aug 12 02:44:43 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ebf530c4e98f09366865dd8c98fff88467e7db72
      https://github.com/llvm/llvm-project/commit/ebf530c4e98f09366865dd8c98fff88467e7db72
  Author: Sergio Afonso <safonsof at amd.com>
  Date:   2024-08-12 (Mon, 12 Aug 2024)

  Changed paths:
    M flang/lib/Lower/OpenMP/Decomposer.cpp
    M flang/lib/Lower/OpenMP/Decomposer.h
    M flang/lib/Lower/OpenMP/OpenMP.cpp

  Log Message:
  -----------
  [Flang][OpenMP] NFC: Use ConstructQueue::const_iterator (#102612)

This patch replaces `ConstructQueue::iterator` arguments with
`ConstructQueue::const_iterator` where it's used as a pointer to an
element inside of a `const ConstructQueue &` passed along with it.

Since these functions don't intend to modify the list or any elements in
it, keeping constness consistent between both makes it simpler to work
with.



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