[Lldb-commits] [PATCH] D147669: PECOFF: consume errors properly

Saleem Abdulrasool via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Apr 7 09:40:21 PDT 2023


compnerd updated this revision to Diff 511706.
compnerd retitled this revision from "PECOFF: enforce move semantics and consume errors properly" to "PECOFF: consume errors properly".
compnerd edited the summary of this revision.

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D147669/new/

https://reviews.llvm.org/D147669

Files:
  lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp


Index: lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
===================================================================
--- lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
+++ lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
@@ -867,6 +867,7 @@
                "ObjectFilePECOFF::AppendFromExportTable - failed to get export "
                "table entry name: {0}",
                llvm::fmt_consume(std::move(err)));
+      llvm::consumeError(std::move(err));
       continue;
     }
     Symbol symbol;
@@ -888,6 +889,7 @@
                  "ObjectFilePECOFF::AppendFromExportTable - failed to get "
                  "forwarder name of forwarder export '{0}': {1}",
                  sym_name, llvm::fmt_consume(std::move(err)));
+        llvm::consumeError(std::move(err));
         continue;
       }
       llvm::SmallString<256> new_name = {symbol.GetDisplayName().GetStringRef(),
@@ -903,6 +905,7 @@
                "ObjectFilePECOFF::AppendFromExportTable - failed to get "
                "address of export entry '{0}': {1}",
                sym_name, llvm::fmt_consume(std::move(err)));
+      llvm::consumeError(std::move(err));
       continue;
     }
     // Skip the symbol if it doesn't look valid.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147669.511706.patch
Type: text/x-patch
Size: 1253 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230407/78cc5157/attachment-0001.bin>


More information about the lldb-commits mailing list