From bfca0d7f7b1711e860c132491ed52b4efcb29aaa Mon Sep 17 00:00:00 2001 From: Hafiz Abid Qadeer Date: Mon, 1 Jun 2015 17:08:30 +0000 Subject: [PATCH] Initialize 3 variables which were being used un-initialized. No regression on testsuite. Comitted as obvious. llvm-svn: 238761 --- lldb/source/Core/Scalar.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lldb/source/Core/Scalar.cpp b/lldb/source/Core/Scalar.cpp index 0e9b98dc4ab6..0022c348bfee 100644 --- a/lldb/source/Core/Scalar.cpp +++ b/lldb/source/Core/Scalar.cpp @@ -1900,7 +1900,7 @@ Scalar::SetValueFromData (DataExtractor &data, lldb::Encoding encoding, size_t b break; case lldb::eEncodingUint: { - lldb::offset_t offset; + lldb::offset_t offset = 0; switch (byte_size) { @@ -1916,7 +1916,7 @@ Scalar::SetValueFromData (DataExtractor &data, lldb::Encoding encoding, size_t b break; case lldb::eEncodingSint: { - lldb::offset_t offset; + lldb::offset_t offset = 0; switch (byte_size) { @@ -1932,7 +1932,7 @@ Scalar::SetValueFromData (DataExtractor &data, lldb::Encoding encoding, size_t b break; case lldb::eEncodingIEEE754: { - lldb::offset_t offset; + lldb::offset_t offset = 0; if (byte_size == sizeof (float)) operator=((float)data.GetFloat(&offset));