From: Duncan P. N. Exon Smith Date: Wed, 2 Jul 2014 17:26:39 +0000 (+0000) Subject: AArch64: Merge isa with dyn_cast X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=8ec436562126d4e94862e54a56ee8b02b7362d58;p=oota-llvm.git AArch64: Merge isa with dyn_cast git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212194 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/AArch64/AArch64AddressTypePromotion.cpp b/lib/Target/AArch64/AArch64AddressTypePromotion.cpp index 9ebb73437b6..85ea46b72da 100644 --- a/lib/Target/AArch64/AArch64AddressTypePromotion.cpp +++ b/lib/Target/AArch64/AArch64AddressTypePromotion.cpp @@ -267,8 +267,7 @@ AArch64AddressTypePromotion::propagateSignExtension(Instructions &SExtInsts) { } // Now try to get through the chain of definitions. - while (isa(SExt->getOperand(0))) { - Instruction *Inst = dyn_cast(SExt->getOperand(0)); + while (auto *Inst = dyn_cast(SExt->getOperand(0))) { DEBUG(dbgs() << "Try to get through:\n" << *Inst << '\n'); if (!canGetThrough(Inst) || !shouldGetThrough(Inst)) { // We cannot get through something that is not an Instruction