[all-commits] [llvm/llvm-project] be8c2d: [libc++][NFC] Clean up std::__call_once

DanielMcIntosh via All-commits all-commits at lists.llvm.org
Tue Sep 19 13:17:42 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: be8c2df2b15b17ef7a409a95333f09b016fc4a7e
      https://github.com/llvm/llvm-project/commit/be8c2df2b15b17ef7a409a95333f09b016fc4a7e
  Author: Daniel McIntosh <Daniel.McIntosh at ibm.com>
  Date:   2023-09-19 (Tue, 19 Sep 2023)

  Changed paths:
    M libcxx/src/mutex.cpp

  Log Message:
  -----------
  [libc++][NFC] Clean up std::__call_once

__call_once is large and cluttered with #ifdef preprocessor guards. This
cleans it up a bit by using an exception guard instead of try-catch.

Differential Revision: https://reviews.llvm.org/D112319
Co-authored-by: Louis Dionne <ldionne.2 at gmail.com>




More information about the All-commits mailing list