AArch64: Merge isa with dyn_cast
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 2 Jul 2014 17:26:39 +0000 (17:26 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 2 Jul 2014 17:26:39 +0000 (17:26 +0000)
llvm-svn: 212194

llvm/lib/Target/AArch64/AArch64AddressTypePromotion.cpp

index 9ebb734..85ea46b 100644 (file)
@@ -267,8 +267,7 @@ AArch64AddressTypePromotion::propagateSignExtension(Instructions &SExtInsts) {
     }
 
     // Now try to get through the chain of definitions.
-    while (isa<Instruction>(SExt->getOperand(0))) {
-      Instruction *Inst = dyn_cast<Instruction>(SExt->getOperand(0));
+    while (auto *Inst = dyn_cast<Instruction>(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