mirror of
https://github.com/intel/llvm.git
synced 2026-01-24 08:30:34 +08:00
[AMDGPU] Remove an unnecessary cast (NFC) (#154470)
getAddressableLocalMemorySize() already returns unsigned.
This commit is contained in:
@@ -1123,8 +1123,7 @@ void AMDGPUAsmPrinter::getSIProgramInfo(SIProgramInfo &ProgInfo,
|
||||
Ctx.diagnose(Diag);
|
||||
}
|
||||
|
||||
if (MFI->getLDSSize() >
|
||||
static_cast<unsigned>(STM.getAddressableLocalMemorySize())) {
|
||||
if (MFI->getLDSSize() > STM.getAddressableLocalMemorySize()) {
|
||||
LLVMContext &Ctx = MF.getFunction().getContext();
|
||||
DiagnosticInfoResourceLimit Diag(
|
||||
MF.getFunction(), "local memory", MFI->getLDSSize(),
|
||||
|
||||
Reference in New Issue
Block a user