[all-commits] [llvm/llvm-project] 898b96: [ADT] Fix llvm::join on containers of char*s (#67113)

Sam McCall via All-commits all-commits at lists.llvm.org
Thu Sep 28 05:45:17 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 898b961885c8589b9b75ac7daa083843d9d00f79
      https://github.com/llvm/llvm-project/commit/898b961885c8589b9b75ac7daa083843d9d00f79
  Author: Sam McCall <sam.mccall at gmail.com>
  Date:   2023-09-28 (Thu, 28 Sep 2023)

  Changed paths:
    M llvm/include/llvm/ADT/StringExtras.h
    M llvm/unittests/ADT/StringExtrasTest.cpp

  Log Message:
  -----------
  [ADT] Fix llvm::join on containers of char*s (#67113)

Currently it tries to call S.size() when preallocating the target
string,
which doesn't compile.
vector<const char*> is used a bunch in e.g. clang driver.




More information about the All-commits mailing list