[llvm] e9045b3 - [ARM] Remove an unnecessary cast (NFC) (#155206)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 25 07:33:38 PDT 2025
Author: Kazu Hirata
Date: 2025-08-25T07:33:34-07:00
New Revision: e9045b3cea0b8d5b5ccbc936065ad03773d146de
URL: https://github.com/llvm/llvm-project/commit/e9045b3cea0b8d5b5ccbc936065ad03773d146de
DIFF: https://github.com/llvm/llvm-project/commit/e9045b3cea0b8d5b5ccbc936065ad03773d146de.diff
LOG: [ARM] Remove an unnecessary cast (NFC) (#155206)
getType() already returns Type *.
Added:
Modified:
llvm/lib/Target/ARM/ARMISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp
index 12d2d678ff63a..40f636c49bf3d 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -3403,7 +3403,7 @@ SDValue ARMTargetLowering::LowerConstantPool(SDValue Op,
// position-independent addressing modes.
if (Subtarget->genExecuteOnly()) {
auto AFI = DAG.getMachineFunction().getInfo<ARMFunctionInfo>();
- auto T = const_cast<Type*>(CP->getType());
+ auto *T = CP->getType();
auto C = const_cast<Constant*>(CP->getConstVal());
auto M = DAG.getMachineFunction().getFunction().getParent();
auto GV = new GlobalVariable(
More information about the llvm-commits
mailing list