[Lldb-commits] [lldb] 1b7e5d4 - [lldb] Fix error message in IRInterpreter

Andy Yankovsky via lldb-commits lldb-commits at lists.llvm.org
Mon Mar 8 07:46:54 PST 2021


Author: Andy Yankovsky
Date: 2021-03-08T16:46:38+01:00
New Revision: 1b7e5d461aee80cd3031b4854ab71f6721b71e31

URL: https://github.com/llvm/llvm-project/commit/1b7e5d461aee80cd3031b4854ab71f6721b71e31
DIFF: https://github.com/llvm/llvm-project/commit/1b7e5d461aee80cd3031b4854ab71f6721b71e31.diff

LOG: [lldb] Fix error message in IRInterpreter

`memory_read_error` -> `memory_write_error`

Reviewed By: teemperor

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

Added: 
    

Modified: 
    lldb/source/Expression/IRInterpreter.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Expression/IRInterpreter.cpp b/lldb/source/Expression/IRInterpreter.cpp
index b87a759aadc5..81d8a8d5070d 100644
--- a/lldb/source/Expression/IRInterpreter.cpp
+++ b/lldb/source/Expression/IRInterpreter.cpp
@@ -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;
       }
 


        


More information about the lldb-commits mailing list