forked from OSchip/llvm-project
[PowerPC] Remove redundant code.
The local variable Hi is never being read. Issue identified by the Clang static analyzer. llvm-svn: 252600
This commit is contained in:
parent
00e780e1cc
commit
990a8d88c8
|
@ -564,7 +564,6 @@ static unsigned SelectInt64CountDirect(int64_t Imm) {
|
|||
|
||||
// Handle first 32 bits.
|
||||
unsigned Lo = Imm & 0xFFFF;
|
||||
unsigned Hi = (Imm >> 16) & 0xFFFF;
|
||||
|
||||
// Simple value.
|
||||
if (isInt<16>(Imm)) {
|
||||
|
@ -586,9 +585,9 @@ static unsigned SelectInt64CountDirect(int64_t Imm) {
|
|||
++Result;
|
||||
|
||||
// Add in the last bits as required.
|
||||
if ((Hi = (Remainder >> 16) & 0xFFFF))
|
||||
if ((Remainder >> 16) & 0xFFFF)
|
||||
++Result;
|
||||
if ((Lo = Remainder & 0xFFFF))
|
||||
if (Remainder & 0xFFFF)
|
||||
++Result;
|
||||
|
||||
return Result;
|
||||
|
|
Loading…
Reference in New Issue