diff options
author | Sanjoy Das <sanjoy@playingwithpointers.com> | 2015-10-10 06:33:33 +0000 |
---|---|---|
committer | Sanjoy Das <sanjoy@playingwithpointers.com> | 2015-10-10 06:33:33 +0000 |
commit | cc16ccc1ab879dc7d2c8c68d0bd4f0698ea24d66 (patch) | |
tree | a4fa30c7a545a057773651f21f141e6d9bee87c1 /llvm/lib | |
parent | 84008481e4d8876bcabaaf9f3cbc2ff7f5f191f5 (diff) | |
download | bcm5719-llvm-cc16ccc1ab879dc7d2c8c68d0bd4f0698ea24d66.tar.gz bcm5719-llvm-cc16ccc1ab879dc7d2c8c68d0bd4f0698ea24d66.zip |
[IndVars] Use `auto`; NFC
llvm-svn: 249944
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Transforms/Scalar/IndVarSimplify.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp index 0062ce5517d..2a4b5c429f8 100644 --- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -962,14 +962,12 @@ Instruction *WidenIV::CloneIVUser(NarrowIVDefUse DU) { Value *RHS = (DU.NarrowUse->getOperand(1) == DU.NarrowDef) ? DU.WideDef : getExtend(DU.NarrowUse->getOperand(1), WideType, IsSigned, DU.NarrowUse); - BinaryOperator *NarrowBO = cast<BinaryOperator>(DU.NarrowUse); - BinaryOperator *WideBO = BinaryOperator::Create(NarrowBO->getOpcode(), - LHS, RHS, - NarrowBO->getName()); + auto *NarrowBO = cast<BinaryOperator>(DU.NarrowUse); + auto *WideBO = BinaryOperator::Create(NarrowBO->getOpcode(), LHS, RHS, + NarrowBO->getName()); IRBuilder<> Builder(DU.NarrowUse); Builder.Insert(WideBO); - if (const OverflowingBinaryOperator *OBO = - dyn_cast<OverflowingBinaryOperator>(NarrowBO)) { + if (const auto *OBO = dyn_cast<OverflowingBinaryOperator>(NarrowBO)) { if (OBO->hasNoUnsignedWrap()) WideBO->setHasNoUnsignedWrap(); if (OBO->hasNoSignedWrap()) WideBO->setHasNoSignedWrap(); } |