[all-commits] [llvm/llvm-project] 9cb2ba: lld: use `std::make_unique` (NFC)

Saleem Abdulrasool via All-commits all-commits at lists.llvm.org
Wed Jun 3 12:23:40 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 9cb2badc596497f49ec2631bb5b8a2300656e75c
      https://github.com/llvm/llvm-project/commit/9cb2badc596497f49ec2631bb5b8a2300656e75c
  Author: Saleem Abdulrasool <compnerd at compnerd.org>
  Date:   2020-06-03 (Wed, 03 Jun 2020)

  Changed paths:
    M lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp

  Log Message:
  -----------
  lld: use `std::make_unique` (NFC)

The LLVM code base already uses C++14, use std::make_unique
to avoid the explicit constructor invocation via new and to avoid
spelling out the type twice.




More information about the All-commits mailing list