[all-commits] [llvm/llvm-project] 927da4: Allow multiple calls to InitLLVM() (NFC)

Mehdi Amini via All-commits all-commits at lists.llvm.org
Thu Aug 20 23:13:28 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 927da43ade12fffc8077c248e0243711071b2094
      https://github.com/llvm/llvm-project/commit/927da43ade12fffc8077c248e0243711071b2094
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2020-08-21 (Fri, 21 Aug 2020)

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

  Log Message:
  -----------
  Allow multiple calls to InitLLVM() (NFC)

In e99dee82b0, the "out_of_memory_new_handler" was changed to be
explicitly initialized instead of relying on a global static
constructor.
However before this change, install_out_of_memory_new_handler could be
called multiple times while it asserts right now.
We can be more tolerant to calling multiple time InitLLVM without
reintroducing a global constructor for this handler.

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




More information about the All-commits mailing list