[Lldb-commits] [lldb] 8da14fb - [lldb] Propagate llvm::Error to report_fatal_error

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Tue Nov 10 08:19:54 PST 2020


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;
   }
 


        


More information about the lldb-commits mailing list