[PATCH] D47799: [COFF] add /errorrepro to save reproducer on error

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 6 11:14:40 PDT 2018


ruiu added inline comments.


================
Comment at: lld/COFF/Driver.cpp:56
+      : OutputFileName(OutputFileName), Prefix(Prefix) {}
+  ~ReproWriter() {
+    if (lld::errorCount() == 0)
----------------
Is this really called when lld exits? I think by default lld calls _exit() to avoid the cost of destruction, so dtors are not called on exit.


https://reviews.llvm.org/D47799





More information about the llvm-commits mailing list