summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-07-02 17:26:39 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-07-02 17:26:39 +0000
commitc4db656221f5038753f5636589b0a98e669eae63 (patch)
treed8c040a949cd578d9fdb4d82911fa43b82d2e0f7
parentfe828adf1971a3292c1734c51fe8d4e14a7a2416 (diff)
downloadbcm5719-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.cpp3
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
OpenPOWER on IntegriCloud