[llvm] 6fa2d03 - AMDGPULowerBufferFatPointers.cpp - fix Wunused-variable warning. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 4 06:59:45 PDT 2024
Author: Simon Pilgrim
Date: 2024-04-04T14:59:01+01:00
New Revision: 6fa2d03bbf86bc01140e3b007554617b029fd3f1
URL: https://github.com/llvm/llvm-project/commit/6fa2d03bbf86bc01140e3b007554617b029fd3f1
DIFF: https://github.com/llvm/llvm-project/commit/6fa2d03bbf86bc01140e3b007554617b029fd3f1.diff
LOG: AMDGPULowerBufferFatPointers.cpp - fix Wunused-variable warning. NFC.
Added:
Modified:
llvm/lib/Target/AMDGPU/AMDGPULowerBufferFatPointers.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/AMDGPULowerBufferFatPointers.cpp b/llvm/lib/Target/AMDGPU/AMDGPULowerBufferFatPointers.cpp
index 20ca633ddee80b..1114a8c40114e4 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPULowerBufferFatPointers.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPULowerBufferFatPointers.cpp
@@ -1086,7 +1086,7 @@ void SplitPtrStructs::processConditionals() {
if (MaybeRsrc)
for (Value *V : Seen)
FoundRsrcs[cast<Instruction>(V)] = NewRsrc;
- } else if (auto *SI = dyn_cast<SelectInst>(I)) {
+ } else if (isa<SelectInst>(I)) {
if (MaybeRsrc) {
ConditionalTemps.push_back(cast<Instruction>(Rsrc));
Rsrc->replaceAllUsesWith(*MaybeRsrc);
More information about the llvm-commits
mailing list