Skip to content

Commit c4db656

Browse files
committed
AArch64: Merge isa with dyn_cast
llvm-svn: 212194
1 parent fe828ad commit c4db656

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/AArch64/AArch64AddressTypePromotion.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,7 @@ AArch64AddressTypePromotion::propagateSignExtension(Instructions &SExtInsts) {
267267
}
268268

269269
// Now try to get through the chain of definitions.
270-
while (isa<Instruction>(SExt->getOperand(0))) {
271-
Instruction *Inst = dyn_cast<Instruction>(SExt->getOperand(0));
270+
while (auto *Inst = dyn_cast<Instruction>(SExt->getOperand(0))) {
272271
DEBUG(dbgs() << "Try to get through:\n" << *Inst << '\n');
273272
if (!canGetThrough(Inst) || !shouldGetThrough(Inst)) {
274273
// We cannot get through something that is not an Instruction

0 commit comments

Comments
 (0)