Author: Jonas Devlieghere Date: 2020-11-10T08:19:47-08:00 New Revision: 8da14fb76c77471479a12e5c5e1acd7b57117062
URL: https://github.com/llvm/llvm-project/commit/8da14fb76c77471479a12e5c5e1acd7b57117062 DIFF: https://github.com/llvm/llvm-project/commit/8da14fb76c77471479a12e5c5e1acd7b57117062.diff LOG: [lldb] Propagate llvm::Error to report_fatal_error Instead of having a custom error message, propagate the llvm::Error from SystemInitializerCommon. I didn't realize we had this overload until Pavel mentioned it in D90987 today. Added: Modified: lldb/source/API/SystemInitializerFull.cpp Removed: ################################################################################ diff --git a/lldb/source/API/SystemInitializerFull.cpp b/lldb/source/API/SystemInitializerFull.cpp index cd5b464db04e..a6421d8f10d0 100644 --- a/lldb/source/API/SystemInitializerFull.cpp +++ b/lldb/source/API/SystemInitializerFull.cpp @@ -42,7 +42,7 @@ llvm::Error SystemInitializerFull::Initialize() { // this, we terminate here before the uninitialized debugger inevitably // crashes. if (repro::Reproducer::Instance().IsReplaying()) - llvm::report_fatal_error("system initialization failed"); + llvm::report_fatal_error(std::move(error)); return error; } _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits