AArch64: Merge isa with dyn_cast

llvm-svn: 212194
This commit is contained in:
Duncan P. N. Exon Smith 2014-07-02 17:26:39 +00:00
parent fe828adf19
commit c4db656221
1 changed files with 1 additions and 2 deletions

View 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