De-constify pointers to Type since they can't be modified. NFC
[oota-llvm.git] / lib / Target / AMDGPU / SIISelLowering.cpp
index 25798c42a8c9f88b7f3916a33e360b043fefabb0..198ac2439eaca18dd4c2adec661ed6397ca2252c 100644 (file)
@@ -617,7 +617,7 @@ SDValue SITargetLowering::LowerFormalArguments(
                                    Offset, Ins[i].Flags.isSExt());
       Chains.push_back(Arg.getValue(1));
 
-      const PointerType *ParamTy =
+      auto *ParamTy =
         dyn_cast<PointerType>(FType->getParamType(Ins[i].getOrigArgIndex()));
       if (Subtarget->getGeneration() == AMDGPUSubtarget::SOUTHERN_ISLANDS &&
           ParamTy && ParamTy->getAddressSpace() == AMDGPUAS::LOCAL_ADDRESS) {