diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-07-02 17:26:39 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-07-02 17:26:39 +0000 |
| commit | c4db656221f5038753f5636589b0a98e669eae63 (patch) | |
| tree | d8c040a949cd578d9fdb4d82911fa43b82d2e0f7 | |
| parent | fe828adf1971a3292c1734c51fe8d4e14a7a2416 (diff) | |
| download | bcm5719-llvm-c4db656221f5038753f5636589b0a98e669eae63.tar.gz bcm5719-llvm-c4db656221f5038753f5636589b0a98e669eae63.zip | |
AArch64: Merge isa with dyn_cast
llvm-svn: 212194
| -rw-r--r-- | llvm/lib/Target/AArch64/AArch64AddressTypePromotion.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64AddressTypePromotion.cpp b/llvm/lib/Target/AArch64/AArch64AddressTypePromotion.cpp index 9ebb73437b6..85ea46b72da 100644 --- a/llvm/lib/Target/AArch64/AArch64AddressTypePromotion.cpp +++ b/llvm/lib/Target/AArch64/AArch64AddressTypePromotion.cpp @@ -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 |

