Skip to content

Commit 936e528

Browse files
[mlir] Fix a warning
This patch fixes: mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp:1304:3: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default]
1 parent 41112db commit 936e528

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1301,8 +1301,6 @@ llvm::Intrinsic::ID CvtToF6x2Op::getIntrinsicID(NVVM::CVTFP6Type type,
13011301
return CVT_TO_F6X2_ID_IMPL(e2m3x2, hasRelu);
13021302
case NVVM::CVTFP6Type::E3M2:
13031303
return CVT_TO_F6X2_ID_IMPL(e3m2x2, hasRelu);
1304-
default:
1305-
llvm_unreachable("Invalid CVTFP6Type for CvtToF6x2Op");
13061304
}
13071305
}
13081306

0 commit comments

Comments
 (0)