Skip to content

Commit 538dca1

Browse files
kazutakahiratagithub-actions[bot]
authored andcommitted
Automerge: [ARM] Remove an unnecessary cast (NFC) (#155206)
getType() already returns Type *.
2 parents 125a9a7 + e9045b3 commit 538dca1

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)