We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe828ad commit c4db656Copy full SHA for c4db656
llvm/lib/Target/AArch64/AArch64AddressTypePromotion.cpp
@@ -267,8 +267,7 @@ AArch64AddressTypePromotion::propagateSignExtension(Instructions &SExtInsts) {
267
}
268
269
// 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));
+ while (auto *Inst = dyn_cast<Instruction>(SExt->getOperand(0))) {
272
DEBUG(dbgs() << "Try to get through:\n" << *Inst << '\n');
273
if (!canGetThrough(Inst) || !shouldGetThrough(Inst)) {
274
// We cannot get through something that is not an Instruction
0 commit comments