diff options
author | Enrico Granata <egranata@apple.com> | 2012-10-24 18:14:21 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2012-10-24 18:14:21 +0000 |
commit | 7e137e3d8fd6a621993bfd96fb48e9a67cae544a (patch) | |
tree | 35b12928ea02b297f9dbf428651010cedd554582 /lldb/source/API | |
parent | 18d0635339ea103f9b307d16b8b63101d1ede752 (diff) | |
download | bcm5719-llvm-7e137e3d8fd6a621993bfd96fb48e9a67cae544a.tar.gz bcm5719-llvm-7e137e3d8fd6a621993bfd96fb48e9a67cae544a.zip |
<rdar://problem/12481949> Fixing SBValue.GetValueAsSigned() to do the right thing when dealing with a 32-bit negative value
llvm-svn: 166603
Diffstat (limited to 'lldb/source/API')
-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 fb66cb79913..df92da60966 100644 --- a/lldb/source/API/SBValue.cpp +++ b/lldb/source/API/SBValue.cpp @@ -1248,7 +1248,7 @@ SBValue::GetValueAsSigned(SBError& error, int64_t fail_value) Mutex::Locker api_locker (target_sp->GetAPIMutex()); Scalar scalar; if (value_sp->ResolveValue (scalar)) - return scalar.GetRawBits64(fail_value); + return scalar.SLongLong(fail_value); else error.SetErrorString("could not get value"); } @@ -1318,7 +1318,7 @@ SBValue::GetValueAsSigned(int64_t fail_value) Mutex::Locker api_locker (target_sp->GetAPIMutex()); Scalar scalar; if (value_sp->ResolveValue (scalar)) - return scalar.GetRawBits64(fail_value); + return scalar.SLongLong(fail_value); } } } |