Skip to content

Commit 7085895

Browse files
[ARM] Remove an unnecessary cast (NFC)
getType() already returns Type *.
1 parent b121cdf commit 7085895

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/ARM/ARMISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3403,7 +3403,7 @@ SDValue ARMTargetLowering::LowerConstantPool(SDValue Op,
34033403
// position-independent addressing modes.
34043404
if (Subtarget->genExecuteOnly()) {
34053405
auto AFI = DAG.getMachineFunction().getInfo<ARMFunctionInfo>();
3406-
auto T = const_cast<Type*>(CP->getType());
3406+
auto *T = CP->getType();
34073407
auto C = const_cast<Constant*>(CP->getConstVal());
34083408
auto M = DAG.getMachineFunction().getFunction().getParent();
34093409
auto GV = new GlobalVariable(

0 commit comments

Comments
 (0)