Skip to content

Commit 7fa48ce

Browse files
[AMDGPU] Remove an unnecessary cast (NFC) (llvm#149254)
getTargetLowering() already returns const SITargetLowering *.
1 parent 96a7e95 commit 7fa48ce

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2225,8 +2225,7 @@ bool SILoadStoreOptimizer::promoteConstantOffsetToImm(
22252225
MachineBasicBlock::iterator E = MBB->end();
22262226
MachineBasicBlock::iterator MBBI = MI.getIterator();
22272227
++MBBI;
2228-
const SITargetLowering *TLI =
2229-
static_cast<const SITargetLowering *>(STM->getTargetLowering());
2228+
const SITargetLowering *TLI = STM->getTargetLowering();
22302229

22312230
for ( ; MBBI != E; ++MBBI) {
22322231
MachineInstr &MINext = *MBBI;

0 commit comments

Comments
 (0)