[Lldb-commits] [PATCH] D80990: [lldb] Fix sizeof() in Scalar::operator=()

2020-06-02 Thread Albert Miko via Phabricator via lldb-commits
miko abandoned this revision. miko added a comment. Unittest added in https://reviews.llvm.org/D80995. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D80990/new/ https://reviews.llvm.org/D80990 ___ lldb-

[Lldb-commits] [PATCH] D80990: [lldb] Fix sizeof() in Scalar::operator=()

2020-06-02 Thread Raphael Isemann via Phabricator via lldb-commits
teemperor requested changes to this revision. teemperor added a comment. This revision now requires changes to proceed. Could you add a unit test for this? See the`ScalarTest.cpp` for the other Scalar tests. Beside that this LGTM. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

[Lldb-commits] [PATCH] D80990: [lldb] Fix sizeof() in Scalar::operator=()

2020-06-02 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. The fix looks obviously correct, but could you please also add a unit test for this. I guess this would manifest itself as the inability to roundtrip e.g. `std::numeric_limits::max()` to a Scalar and back. It's not required, but if you're interested, it would be nice to

[Lldb-commits] [PATCH] D80990: [lldb] Fix sizeof() in Scalar::operator=()

2020-06-02 Thread Albert Miko via Phabricator via lldb-commits
miko created this revision. Herald added a project: LLDB. Herald added a subscriber: lldb-commits. In Scalar::operator=(long long) the size of the result was calculated using sizeof(long) instead of sizeof(long long). On Windows sizeof(long)==4 but sizeof(long long)==8. Repository: rG LLVM G