diff options
author | Enrico Granata <egranata@apple.com> | 2012-10-24 20:24:39 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2012-10-24 20:24:39 +0000 |
commit | 48ea80f9ff86cd7d6aa70cb1d03579c0c87b828b (patch) | |
tree | 31999b05063ac8e2fce44a833f485e6a919c544c /lldb/source/API/SBValue.cpp | |
parent | 6fd26424af4a012c851af4cc8da81bbc09ffd796 (diff) | |
download | bcm5719-llvm-48ea80f9ff86cd7d6aa70cb1d03579c0c87b828b.tar.gz bcm5719-llvm-48ea80f9ff86cd7d6aa70cb1d03579c0c87b828b.zip |
Reimplementing SBValue/ValueObject.GetValueAsUnsigned() in terms of appropriate calls in Scalar - Making sure Scalar does the right thing when casting signed values to unsigned ones.
llvm-svn: 166618
Diffstat (limited to 'lldb/source/API/SBValue.cpp')
-rw-r--r-- | lldb/source/API/SBValue.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/API/SBValue.cpp b/lldb/source/API/SBValue.cpp index df92da60966..2e4be07b1fd 100644 --- a/lldb/source/API/SBValue.cpp +++ b/lldb/source/API/SBValue.cpp @@ -1284,7 +1284,7 @@ SBValue::GetValueAsUnsigned(SBError& error, uint64_t fail_value) Mutex::Locker api_locker (target_sp->GetAPIMutex()); Scalar scalar; if (value_sp->ResolveValue (scalar)) - return scalar.GetRawBits64(fail_value); + return scalar.ULongLong(fail_value); else error.SetErrorString("could not get value"); } @@ -1347,7 +1347,7 @@ SBValue::GetValueAsUnsigned(uint64_t fail_value) Mutex::Locker api_locker (target_sp->GetAPIMutex()); Scalar scalar; if (value_sp->ResolveValue (scalar)) - return scalar.GetRawBits64(fail_value); + return scalar.ULongLong(fail_value); } } } |