[all-commits] [llvm/llvm-project] 18058f: [llvm][GraphWriter] Resize std::string, instead of...

Youngsuk Kim via All-commits all-commits at lists.llvm.org
Thu May 2 14:22:03 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 18058f2a32854d2d257cff47b28479b2ff425496
      https://github.com/llvm/llvm-project/commit/18058f2a32854d2d257cff47b28479b2ff425496
  Author: Youngsuk Kim <youngsuk.kim at hpe.com>
  Date:   2024-05-02 (Thu, 02 May 2024)

  Changed paths:
    M llvm/lib/Support/GraphWriter.cpp

  Log Message:
  -----------
  [llvm][GraphWriter] Resize std::string, instead of reassigning to substr (NFC)

* Don't call substr which creates a new string instance
* Only call string method if string length is larger than 140

Closes #90324



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