[all-commits] [llvm/llvm-project] e9a47a: [llvm] Construct SmallVector with ArrayRef (NFC) (...

Kazu Hirata via All-commits all-commits at lists.llvm.org
Fri Aug 9 21:39:34 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e9a47a664a67b188c553e04232f9b445890a83b2
      https://github.com/llvm/llvm-project/commit/e9a47a664a67b188c553e04232f9b445890a83b2
  Author: Kazu Hirata <kazu at google.com>
  Date:   2024-08-09 (Fri, 09 Aug 2024)

  Changed paths:
    M llvm/include/llvm/Analysis/ScalarEvolution.h
    M llvm/lib/Analysis/ScalarEvolution.cpp
    M llvm/lib/Transforms/Utils/LCSSA.cpp
    M llvm/utils/TableGen/Common/DAGISelMatcher.cpp
    M llvm/utils/TableGen/Common/DAGISelMatcher.h

  Log Message:
  -----------
  [llvm] Construct SmallVector with ArrayRef (NFC) (#102712)

Without this patch, the constructor arguments come from
SmallVectorImpl, not ArrayRef.  This patch switches them to ArrayRef
so that we can construct SmallVector with a single argument.

Note that LLVM Programmer’s Manual prefers ArrayRef to SmallVectorImpl
for flexibility.



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