[PATCH] D86330: Allow multiple calls to InitLLVM() (NFC)
Mehdi AMINI via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 20 23:13:29 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG927da43ade12: Allow multiple calls to InitLLVM() (NFC) (authored by mehdi_amini).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D86330/new/
https://reviews.llvm.org/D86330
Files:
llvm/lib/Support/ErrorHandling.cpp
Index: llvm/lib/Support/ErrorHandling.cpp
===================================================================
--- llvm/lib/Support/ErrorHandling.cpp
+++ llvm/lib/Support/ErrorHandling.cpp
@@ -192,7 +192,8 @@
void llvm::install_out_of_memory_new_handler() {
std::new_handler old = std::set_new_handler(out_of_memory_new_handler);
(void)old;
- assert(old == nullptr && "new-handler already installed");
+ assert((old == nullptr || old == out_of_memory_new_handler) &&
+ "new-handler already installed");
}
#endif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86330.286954.patch
Type: text/x-patch
Size: 532 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200821/1bc2b44d/attachment.bin>
More information about the llvm-commits
mailing list