[all-commits] [llvm/llvm-project] e48cd7: [demangler] Buffer peeking needs buffer

Nathan Sidwell via All-commits all-commits at lists.llvm.org
Mon May 9 04:55:38 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e48cd7088b736dae5cd572ebb58963c70a4a72b8
      https://github.com/llvm/llvm-project/commit/e48cd7088b736dae5cd572ebb58963c70a4a72b8
  Author: Nathan Sidwell <nathan at acm.org>
  Date:   2022-05-09 (Mon, 09 May 2022)

  Changed paths:
    M libcxxabi/src/demangle/Utility.h
    M llvm/include/llvm/Demangle/Utility.h

  Log Message:
  -----------
  [demangler] Buffer peeking needs buffer

The output buffer has a 'back' member, which returns NUL when you try
it with an empty buffer.  But there are no use cases that need that
additional functionality.  This makes the 'back' member behave more
like STL containers' back members.  (It still returns a value, not a
reference.)

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D123201




More information about the All-commits mailing list