[Lldb-commits] [lldb] d300337 - [lldb] Add cast to fix compile error on 32-but platforms

Adrian Prantl via lldb-commits lldb-commits at lists.llvm.org
Tue Dec 10 10:01:08 PST 2024


Author: Adrian Prantl
Date: 2024-12-10T10:00:54-08:00
New Revision: d300337e93da4ed96b044557e4b0a30001967cf0

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

LOG: [lldb] Add cast to fix compile error on 32-but platforms

Added: 
    

Modified: 
    lldb/source/DataFormatters/FormatterBytecode.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/DataFormatters/FormatterBytecode.cpp b/lldb/source/DataFormatters/FormatterBytecode.cpp
index 7cad3474edebd3..02b2684485a92d 100644
--- a/lldb/source/DataFormatters/FormatterBytecode.cpp
+++ b/lldb/source/DataFormatters/FormatterBytecode.cpp
@@ -486,7 +486,7 @@ llvm::Error Interpret(std::vector<ControlStackElement> &control,
         TYPE_CHECK(Object, String);
         auto name = data.Pop<std::string>();
         POP_VALOBJ(valobj);
-        data.Push(valobj->GetIndexOfChildWithName(name));
+        data.Push((uint64_t)valobj->GetIndexOfChildWithName(name));
         break;
       }
       case sel_get_type: {


        


More information about the lldb-commits mailing list