De-constify pointers to Type since they can't be modified. NFC
[oota-llvm.git] / lib / Target / AArch64 / AArch64FastISel.cpp
index 1f9882ed31ea300a6bd71aeb91aac77ec0e8f105..322dce662abd092040112d447398fd0832b909a2 100644 (file)
@@ -523,7 +523,7 @@ bool AArch64FastISel::computeAddress(const Value *Obj, Address &Addr, Type *Ty)
     U = C;
   }
 
-  if (const PointerType *Ty = dyn_cast<PointerType>(Obj->getType()))
+  if (auto *Ty = dyn_cast<PointerType>(Obj->getType()))
     if (Ty->getAddressSpace() > 255)
       // Fast instruction selection doesn't support the special
       // address spaces.