[llvm] 29b2082 - Fix Wunused-variable warning. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 9 02:26:32 PDT 2023
Author: Simon Pilgrim
Date: 2023-10-09T10:26:01+01:00
New Revision: 29b20829cc6ce3e6d9c3809164994c1659e0da56
URL: https://github.com/llvm/llvm-project/commit/29b20829cc6ce3e6d9c3809164994c1659e0da56
DIFF: https://github.com/llvm/llvm-project/commit/29b20829cc6ce3e6d9c3809164994c1659e0da56.diff
LOG: Fix Wunused-variable warning. NFC.
Added:
Modified:
llvm/lib/Target/AMDGPU/SIISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
index 0a32844bdb01a09..bc264ca29d5aaa4 100644
--- a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+++ b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
@@ -10866,7 +10866,7 @@ calculateSrcByte(const SDValue Op, uint64_t DestByte, uint64_t SrcIndex = 0,
}
default: {
- if (auto A = dyn_cast<AtomicSDNode>(Op) || Op->isMemIntrinsic()) {
+ if (isa<AtomicSDNode>(Op) || Op->isMemIntrinsic()) {
// If this causes us to throw away signedness info, then fail.
if (IsSigned)
return std::nullopt;
More information about the llvm-commits
mailing list