[lldb] Fix error message in IRInterpreter

`memory_read_error` -> `memory_write_error`

Reviewed By: teemperor

Differential Revision: https://reviews.llvm.org/D98170
This commit is contained in:
Andy Yankovsky 2021-03-08 13:41:33 +01:00
parent 57a0e0d4c2
commit 1b7e5d461a
1 changed files with 1 additions and 1 deletions

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