Skip to content

Commit 9799746

Browse files
[mlir] Fix a warning
This patch fixes: mlir/lib/Conversion/GPUToROCDL/LowerGpuOpsToROCDLOps.cpp:170:5: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default]
1 parent 6e47937 commit 9799746

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

mlir/lib/Conversion/GPUToROCDL/LowerGpuOpsToROCDLOps.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,6 @@ struct GPUShuffleOpLowering : public ConvertOpToLLVMPattern<gpu::ShuffleOp> {
215215
case gpu::ShuffleMode::IDX:
216216
dstLane = adaptor.getOffset();
217217
break;
218-
default:
219-
return failure();
220218
}
221219
Value isActiveSrcLane = rewriter.create<LLVM::ICmpOp>(
222220
loc, LLVM::ICmpPredicate::slt, dstLane, widthOrZeroIfOutside);

0 commit comments

Comments
 (0)