Skip to content

Commit bfb6bb6

Browse files
[AMDGPU] Fix a warning
This patch fixes: llvm/lib/Target/AMDGPU/SIISelLowering.cpp:13908:46: error: comparison of integers of different signs: 'uint32_t' (aka 'unsigned int') and 'int' [-Werror,-Wsign-compare]
1 parent 7710453 commit bfb6bb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/SIISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13905,7 +13905,7 @@ static SDValue tryFoldMADwithSRL(SelectionDAG &DAG, const SDLoc &SL,
1390513905
return SDValue();
1390613906

1390713907
ConstantSDNode *Const = dyn_cast<ConstantSDNode>(MulRHS.getNode());
13908-
if (!Const || Hi_32(Const->getZExtValue()) != -1)
13908+
if (!Const || Hi_32(Const->getZExtValue()) != uint32_t(-1))
1390913909
return SDValue();
1391013910

1391113911
SDValue ConstMul =

0 commit comments

Comments
 (0)