Skip to content

Commit fab0860

Browse files
[AMDGPU] Remove an unnecessary cast (NFC) (#154470)
getAddressableLocalMemorySize() already returns unsigned.
1 parent fad3272 commit fab0860

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,8 +1123,7 @@ void AMDGPUAsmPrinter::getSIProgramInfo(SIProgramInfo &ProgInfo,
11231123
Ctx.diagnose(Diag);
11241124
}
11251125

1126-
if (MFI->getLDSSize() >
1127-
static_cast<unsigned>(STM.getAddressableLocalMemorySize())) {
1126+
if (MFI->getLDSSize() > STM.getAddressableLocalMemorySize()) {
11281127
LLVMContext &Ctx = MF.getFunction().getContext();
11291128
DiagnosticInfoResourceLimit Diag(
11301129
MF.getFunction(), "local memory", MFI->getLDSSize(),

0 commit comments

Comments
 (0)