[all-commits] [llvm/llvm-project] 52db30: [lldb] Fix compiler error in ValueObject tests
David Spickett via All-commits
all-commits at lists.llvm.org
Fri Feb 7 02:30:06 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 52db30ec4154b0ef21db546ed9b5a9bfe47859cd
https://github.com/llvm/llvm-project/commit/52db30ec4154b0ef21db546ed9b5a9bfe47859cd
Author: David Spickett <david.spickett at linaro.org>
Date: 2025-02-07 (Fri, 07 Feb 2025)
Changed paths:
M lldb/unittests/ValueObject/DynamicValueObjectLocalBuffer.cpp
Log Message:
-----------
[lldb] Fix compiler error in ValueObject tests
Fixes 0cbc4983adcdbbd85ccb38b2dfbfe5985367b1b2.
error: non-constant-expression cannot be narrowed from type 'uint64_t' (aka 'unsigned long long') to 'size_t' (aka 'unsigned int') in initializer list [-Wc++11-narrowing]
71 | in_value.GetLocalBufferSize()};
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Given this is test code, I think a static cast is fine here.
Tiny risk that it's actually a symptom of a bug that would
happen if you did 32-bit to 64-bit debugging. I expect you'd
find a lot more bugs than that though.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list