[Lldb-commits] [PATCH] D98170: [lldb] Fix error message in IRInterpreter

Andy Yankovsky via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Mar 8 04:44:51 PST 2021


werat created this revision.
werat added reviewers: teemperor, spyffe.
werat requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.

`memory_read_error` -> `memory_write_error`


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D98170

Files:
  lldb/source/Expression/IRInterpreter.cpp


Index: lldb/source/Expression/IRInterpreter.cpp
===================================================================
--- lldb/source/Expression/IRInterpreter.cpp
+++ lldb/source/Expression/IRInterpreter.cpp
@@ -1241,7 +1241,7 @@
       if (!write_error.Success()) {
         LLDB_LOGF(log, "Couldn't write to a region on behalf of a LoadInst");
         error.SetErrorToGenericError();
-        error.SetErrorString(memory_read_error);
+        error.SetErrorString(memory_write_error);
         return false;
       }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98170.328974.patch
Type: text/x-patch
Size: 520 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20210308/0583fe5b/attachment-0001.bin>


More information about the lldb-commits mailing list