diff options
author | Craig Topper <craig.topper@gmail.com> | 2017-04-23 05:18:31 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2017-04-23 05:18:31 +0000 |
commit | 5f68af08066b28be2cb12befe0067cbafa0f8ac2 (patch) | |
tree | 0fda37a49bd5b6de24c590fa89556cf758394594 /llvm/lib/ExecutionEngine/Interpreter/Execution.cpp | |
parent | 5da709025629fcc90a37cfd942632c98a3c4de94 (diff) | |
download | llvm-5f68af08066b28be2cb12befe0067cbafa0f8ac2.zip llvm-5f68af08066b28be2cb12befe0067cbafa0f8ac2.tar.gz llvm-5f68af08066b28be2cb12befe0067cbafa0f8ac2.tar.bz2 |
[APInt] Use operator<<= instead of shl where possible. NFC
llvm-svn: 301103
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/Execution.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/Interpreter/Execution.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp index 10b4e98..9684443 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp +++ b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp @@ -1565,7 +1565,7 @@ GenericValue Interpreter::executeBitCastInst(Value *SrcVal, Type *DstTy, Tmp = Tmp.zext(SrcBitSize); Tmp = TempSrc.AggregateVal[SrcElt++].IntVal; Tmp = Tmp.zext(DstBitSize); - Tmp = Tmp.shl(ShiftAmt); + Tmp <<= ShiftAmt; ShiftAmt += isLittleEndian ? SrcBitSize : -SrcBitSize; Elt.IntVal |= Tmp; } |