[llvm] 24c256a - AMDGPULowerBufferFatPointers.cpp - fix Wparentheses warning. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 4 06:59:44 PDT 2024
Author: Simon Pilgrim
Date: 2024-04-04T14:59:01+01:00
New Revision: 24c256a6b7892bcf98eac531c99d9038cd826ce0
URL: https://github.com/llvm/llvm-project/commit/24c256a6b7892bcf98eac531c99d9038cd826ce0
DIFF: https://github.com/llvm/llvm-project/commit/24c256a6b7892bcf98eac531c99d9038cd826ce0.diff
LOG: AMDGPULowerBufferFatPointers.cpp - fix Wparentheses 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 9083150b338488..20ca633ddee80b 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPULowerBufferFatPointers.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPULowerBufferFatPointers.cpp
@@ -1777,8 +1777,8 @@ void SplitPtrStructs::processFunction(Function &F) {
Originals.push_back(&I);
for (Instruction *I : Originals) {
auto [Rsrc, Off] = visit(I);
- assert((Rsrc && Off) ||
- (!Rsrc && !Off) && "Can't have a resource but no offset");
+ assert(((Rsrc && Off) || (!Rsrc && !Off)) &&
+ "Can't have a resource but no offset");
if (Rsrc)
RsrcParts[I] = Rsrc;
if (Off)
More information about the llvm-commits
mailing list