Author: Adrian Prantl
Date: 2024-12-10T10:28:14-08:00
New Revision: f6012a209dca6b1866d00e6b4f96279469884320

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

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

Added: 
    

Modified: 
    lldb/source/DataFormatters/FormatterBytecode.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/DataFormatters/FormatterBytecode.cpp 
b/lldb/source/DataFormatters/FormatterBytecode.cpp
index 02b2684485a92d..21e90e75202f68 100644
--- a/lldb/source/DataFormatters/FormatterBytecode.cpp
+++ b/lldb/source/DataFormatters/FormatterBytecode.cpp
@@ -551,7 +551,7 @@ llvm::Error Interpret(std::vector<ControlStackElement> 
&control,
       }
       case sel_strlen: {
         TYPE_CHECK(String);
-        data.Push(data.Pop<std::string>().size());
+        data.Push((uint64_t)data.Pop<std::string>().size());
         break;
       }
       case sel_fmt: {


        
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to