[Lldb-commits] [lldb] 1593f36 - [lldb] Add explicit type conversion
Adrian Prantl via lldb-commits
lldb-commits at lists.llvm.org
Tue Dec 10 17:01:59 PST 2024
Author: Adrian Prantl
Date: 2024-12-10T17:01:51-08:00
New Revision: 1593f36935edc97bede71bd1d722edf83eaf16a4
URL: https://github.com/llvm/llvm-project/commit/1593f36935edc97bede71bd1d722edf83eaf16a4
DIFF: https://github.com/llvm/llvm-project/commit/1593f36935edc97bede71bd1d722edf83eaf16a4.diff
LOG: [lldb] Add explicit type conversion
Added:
Modified:
lldb/source/DataFormatters/FormatterBytecode.cpp
Removed:
################################################################################
diff --git a/lldb/source/DataFormatters/FormatterBytecode.cpp b/lldb/source/DataFormatters/FormatterBytecode.cpp
index 21e90e75202f68..a8975494b83670 100644
--- a/lldb/source/DataFormatters/FormatterBytecode.cpp
+++ b/lldb/source/DataFormatters/FormatterBytecode.cpp
@@ -339,7 +339,7 @@ llvm::Error Interpret(std::vector<ControlStackElement> &control,
}
case op_is_null: {
TYPE_CHECK(Object);
- data.Push(data.Pop<ValueObjectSP>() ? 0ULL : 1ULL);
+ data.Push(data.Pop<ValueObjectSP>() ? (uint64_t)0 : (uint64_t)1);
continue;
}
More information about the lldb-commits
mailing list