forked from OSchip/llvm-project
Initialize 3 variables which were being used un-initialized.
No regression on testsuite. Comitted as obvious. llvm-svn: 238761
This commit is contained in:
parent
cbbf8e0a39
commit
bfca0d7f7b
|
@ -1900,7 +1900,7 @@ Scalar::SetValueFromData (DataExtractor &data, lldb::Encoding encoding, size_t b
|
||||||
break;
|
break;
|
||||||
case lldb::eEncodingUint:
|
case lldb::eEncodingUint:
|
||||||
{
|
{
|
||||||
lldb::offset_t offset;
|
lldb::offset_t offset = 0;
|
||||||
|
|
||||||
switch (byte_size)
|
switch (byte_size)
|
||||||
{
|
{
|
||||||
|
@ -1916,7 +1916,7 @@ Scalar::SetValueFromData (DataExtractor &data, lldb::Encoding encoding, size_t b
|
||||||
break;
|
break;
|
||||||
case lldb::eEncodingSint:
|
case lldb::eEncodingSint:
|
||||||
{
|
{
|
||||||
lldb::offset_t offset;
|
lldb::offset_t offset = 0;
|
||||||
|
|
||||||
switch (byte_size)
|
switch (byte_size)
|
||||||
{
|
{
|
||||||
|
@ -1932,7 +1932,7 @@ Scalar::SetValueFromData (DataExtractor &data, lldb::Encoding encoding, size_t b
|
||||||
break;
|
break;
|
||||||
case lldb::eEncodingIEEE754:
|
case lldb::eEncodingIEEE754:
|
||||||
{
|
{
|
||||||
lldb::offset_t offset;
|
lldb::offset_t offset = 0;
|
||||||
|
|
||||||
if (byte_size == sizeof (float))
|
if (byte_size == sizeof (float))
|
||||||
operator=((float)data.GetFloat(&offset));
|
operator=((float)data.GetFloat(&offset));
|
||||||
|
|
Loading…
Reference in New Issue