[all-commits] [llvm/llvm-project] 4ab766: tsan: Support constructor arguments via New

Marco Elver via All-commits all-commits at lists.llvm.org
Fri Jul 30 03:51:12 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4ab76659198463eb838a0dcef696704186fe036c
      https://github.com/llvm/llvm-project/commit/4ab76659198463eb838a0dcef696704186fe036c
  Author: Marco Elver <elver at google.com>
  Date:   2021-07-30 (Fri, 30 Jul 2021)

  Changed paths:
    M compiler-rt/lib/tsan/rtl/tsan_mman.h
    M compiler-rt/lib/tsan/rtl/tsan_rtl.cpp

  Log Message:
  -----------
  tsan: Support constructor arguments via New

Make New<>() a variadic function template and forward any arguments to
the constructor. std::forward<>() is inlined to avoid including
<utility>.

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




More information about the All-commits mailing list