[Scalar] Fix assignment operator for long long.
authorAndy Yankovsky <weratt@gmail.com>
Wed, 3 Jun 2020 11:08:00 +0000 (13:08 +0200)
committerPavel Labath <pavel@labath.sk>
Wed, 3 Jun 2020 11:26:25 +0000 (13:26 +0200)
commit798644e0a4524e73e1f95202951f10f2086217c3
tree205cb07c1a52b180d4c138b8bff4fe98afbfb5b2
parent884aaf7f645a27239923e21112c9817836c696df
[Scalar] Fix assignment operator for long long.

Summary:
Assignment operator `operator=(long long)` currently allocates `sizeof(long)`.
On some platforms it works as they have `sizeof(long) == sizeof(long long)`,
but on others (e.g. Windows) it's not the case.

Reviewed By: labath

Differential Revision: https://reviews.llvm.org/D80995
lldb/source/Utility/Scalar.cpp
lldb/unittests/Utility/ScalarTest.cpp