projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbbf8e0
)
Initialize 3 variables which were being used un-initialized.
author
Hafiz Abid Qadeer
<hafiz_abid@mentor.com>
Mon, 1 Jun 2015 17:08:30 +0000
(17:08 +0000)
committer
Hafiz Abid Qadeer
<hafiz_abid@mentor.com>
Mon, 1 Jun 2015 17:08:30 +0000
(17:08 +0000)
No regression on testsuite. Comitted as obvious.
llvm-svn: 238761
lldb/source/Core/Scalar.cpp
patch
|
blob
|
history
diff --git
a/lldb/source/Core/Scalar.cpp
b/lldb/source/Core/Scalar.cpp
index
0e9b98d
..
0022c34
100644
(file)
--- 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));