Skip to content

Commit 769eab4

Browse files
authored
[NFC][AMDGPU] Fix redundant assignment from #77952 (#84586)
Someone pointed out a typo (Value* RsrcRes = RsrcRes = ...) in PR the address space 7 lowering, this commit fixes it.
1 parent 5e688f0 commit 769eab4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/AMDGPULowerBufferFatPointers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1671,7 +1671,7 @@ PtrParts SplitPtrStructs::visitSelectInst(SelectInst &SI) {
16711671
auto [TrueRsrc, TrueOff] = getPtrParts(True);
16721672
auto [FalseRsrc, FalseOff] = getPtrParts(False);
16731673

1674-
Value *RsrcRes = RsrcRes =
1674+
Value *RsrcRes =
16751675
IRB.CreateSelect(Cond, TrueRsrc, FalseRsrc, SI.getName() + ".rsrc", &SI);
16761676
copyMetadata(RsrcRes, &SI);
16771677
Conditionals.push_back(&SI);

0 commit comments

Comments
 (0)