[all-commits] [llvm/llvm-project] acd1ab: [clang] NFC: Avoid double allocation when generati...

Jan Svoboda via All-commits all-commits at lists.llvm.org
Thu Aug 3 20:36:13 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: acd1ab869fca0cfa09065aac518da399f755ed5c
      https://github.com/llvm/llvm-project/commit/acd1ab869fca0cfa09065aac518da399f755ed5c
  Author: Jan Svoboda <jan_svoboda at apple.com>
  Date:   2023-08-03 (Thu, 03 Aug 2023)

  Changed paths:
    M clang/lib/Frontend/CompilerInvocation.cpp

  Log Message:
  -----------
  [clang] NFC: Avoid double allocation when generating command line

This patch makes use of the infrastructure established in D157046 to avoid needless allocations via `StringSaver`.

Depends on D157046.

Reviewed By: benlangmuir

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




More information about the All-commits mailing list