[Lldb-commits] [lldb] f6012a2 - [lldb] Add cast to fix compile error on 32-bit platforms
Adrian Prantl via lldb-commits
lldb-commits at lists.llvm.org
Tue Dec 10 10:28:22 PST 2024
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: {
More information about the lldb-commits
mailing list