[llvm] 8341e62 - [NFC][AMDGPU] Fix a compiler warning caused by a small typo (#191107)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 9 05:54:21 PDT 2026
Author: Shilei Tian
Date: 2026-04-09T08:54:16-04:00
New Revision: 8341e62c6697ab0bbcaf546eba28d5845577f6ee
URL: https://github.com/llvm/llvm-project/commit/8341e62c6697ab0bbcaf546eba28d5845577f6ee
DIFF: https://github.com/llvm/llvm-project/commit/8341e62c6697ab0bbcaf546eba28d5845577f6ee.diff
LOG: [NFC][AMDGPU] Fix a compiler warning caused by a small typo (#191107)
Added:
Modified:
llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp b/llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp
index 2aec8aaf9b613..f676aadb4ba00 100644
--- a/llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp
+++ b/llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp
@@ -106,10 +106,10 @@ SIMachineFunctionInfo::SIMachineFunctionInfo(const Function &F,
// required for scratch access.
ScratchRSrcReg = AMDGPU::isChainCC(CC)
? AMDGPU::SGPR48_SGPR49_SGPR50_SGPR51
- : ScratchRSrcReg = AMDGPU::SGPR0_SGPR1_SGPR2_SGPR3;
+ : AMDGPU::SGPR0_SGPR1_SGPR2_SGPR3;
ArgInfo.PrivateSegmentBuffer =
- ArgDescriptor::createRegister(ScratchRSrcReg);
+ ArgDescriptor::createRegister(ScratchRSrcReg);
}
if (!F.hasFnAttribute("amdgpu-no-implicitarg-ptr") &&
More information about the llvm-commits
mailing list