diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-04-20 21:21:28 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-04-20 21:21:28 +0000 | 
| commit | d44a35e87e405ae98902dc491ba70ed82f58f592 (patch) | |
| tree | c943b2e42186cf1629dc15a3b6604514996993ee /source/Core/Scalar.cpp | |
| parent | 74a628f776edb588bff8f8f5cc16eac947c9d631 (diff) | |
Notes
Diffstat (limited to 'source/Core/Scalar.cpp')
| -rw-r--r-- | source/Core/Scalar.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/source/Core/Scalar.cpp b/source/Core/Scalar.cpp index 88ad430ddbae..3adf85098648 100644 --- a/source/Core/Scalar.cpp +++ b/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::getSignBit(sign_bit_pos + 1); +        llvm::APInt sign_bit = llvm::APInt::getSignMask(sign_bit_pos + 1);          llvm::APInt bitwize_and = m_integer & sign_bit;          if (bitwize_and.getBoolValue()) {            const llvm::APInt mask =  | 
