diff --git a/lldb/source/Expression/IRInterpreter.cpp b/lldb/source/Expression/IRInterpreter.cpp index 509e4636d705..622ce9cd3612 100644 --- a/lldb/source/Expression/IRInterpreter.cpp +++ b/lldb/source/Expression/IRInterpreter.cpp @@ -1300,7 +1300,7 @@ IRInterpreter::Interpret (llvm::Module &module, if (log) log->Printf("Couldn't write to a region on behalf of a StoreInst"); error.SetErrorToGenericError(); - error.SetErrorString(memory_read_error); + error.SetErrorString(memory_write_error); return false; }