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:
fff8e06
)
Changed a use of APInt::getSignBit to APInt::getSignMask.
author
Sean Callanan
<scallanan@apple.com>
Thu, 20 Apr 2017 18:07:51 +0000
(18:07 +0000)
committer
Sean Callanan
<scallanan@apple.com>
Thu, 20 Apr 2017 18:07:51 +0000
(18:07 +0000)
llvm-svn: 300862
lldb/source/Core/Scalar.cpp
patch
|
blob
|
history
diff --git
a/lldb/source/Core/Scalar.cpp
b/lldb/source/Core/Scalar.cpp
index
88ad430
..
3adf850
100644
(file)
--- a/
lldb/source/Core/Scalar.cpp
+++ b/
lldb/source/Core/Scalar.cpp
@@
-2745,7
+2745,7
@@
bool Scalar::SignExtend(uint32_t sign_bit_pos) {
if (max_bit_pos == sign_bit_pos)
return true;
else if (sign_bit_pos < (max_bit_pos - 1)) {
- llvm::APInt sign_bit = llvm::APInt::getSign
Bit
(sign_bit_pos + 1);
+ llvm::APInt sign_bit = llvm::APInt::getSign
Mask
(sign_bit_pos + 1);
llvm::APInt bitwize_and = m_integer & sign_bit;
if (bitwize_and.getBoolValue()) {
const llvm::APInt mask =