Skip to content

Commit c9ca2fe

Browse files
authored
[AMDGPU] Fix gcc -Wparentheses warning. NFC (llvm#70239)
1 parent 9237ce4 commit c9ca2fe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/Target/AMDGPU/SIISelLowering.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12786,10 +12786,10 @@ static unsigned addPermMasks(unsigned First, unsigned Second) {
1278612786
unsigned FirstNoCs = First & ~0x0c0c0c0c;
1278712787
unsigned SecondNoCs = Second & ~0x0c0c0c0c;
1278812788

12789-
assert(FirstCs & 0xFF | SecondCs & 0xFF);
12790-
assert(FirstCs & 0xFF00 | SecondCs & 0xFF00);
12791-
assert(FirstCs & 0xFF0000 | SecondCs & 0xFF0000);
12792-
assert(FirstCs & 0xFF000000 | SecondCs & 0xFF000000);
12789+
assert((FirstCs & 0xFF) | (SecondCs & 0xFF));
12790+
assert((FirstCs & 0xFF00) | (SecondCs & 0xFF00));
12791+
assert((FirstCs & 0xFF0000) | (SecondCs & 0xFF0000));
12792+
assert((FirstCs & 0xFF000000) | (SecondCs & 0xFF000000));
1279312793

1279412794
return (FirstNoCs | SecondNoCs) | (FirstCs & SecondCs);
1279512795
}

0 commit comments

Comments
 (0)