[lldb] Fix error message in IRInterpreter
authorAndy Yankovsky <weratt@gmail.com>
Mon, 8 Mar 2021 12:41:33 +0000 (13:41 +0100)
committerAndy Yankovsky <weratt@gmail.com>
Mon, 8 Mar 2021 15:46:38 +0000 (16:46 +0100)
`memory_read_error` -> `memory_write_error`

Reviewed By: teemperor

Differential Revision: https://reviews.llvm.org/D98170

lldb/source/Expression/IRInterpreter.cpp

index b87a759..81d8a8d 100644 (file)
@@ -1241,7 +1241,7 @@ bool IRInterpreter::Interpret(llvm::Module &module, llvm::Function &function,
       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;
       }