[all-commits] [llvm/llvm-project] eea41b: [llvm] Replace `OwningArrayRef` with `SmallVector`...

David Stone via All-commits all-commits at lists.llvm.org
Fri Jan 16 10:15:23 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eea41bb40461fc6f22ed0a84d17c1abb2d2fb93e
      https://github.com/llvm/llvm-project/commit/eea41bb40461fc6f22ed0a84d17c1abb2d2fb93e
  Author: David Stone <davidfromonline at gmail.com>
  Date:   2026-01-16 (Fri, 16 Jan 2026)

  Changed paths:
    M llvm/include/llvm/DebugInfo/BTF/BTFParser.h
    M llvm/lib/DebugInfo/BTF/BTFParser.cpp

  Log Message:
  -----------
  [llvm] Replace `OwningArrayRef` with `SmallVector` in `BTFParser` (#169124)

`OwningArrayRef` requires that the size and the capacity are the same.
This prevents reusing memory allocations unless the size happens to be
exactly the same (which is rare enough we don't even try). Switch to
`SmallVector` instead so that we're not repeatedly calling `new[]` and
`delete[]`.



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