diff options
| -rw-r--r-- | mlir/lib/Dialect/EmitC/IR/EmitC.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/mlir/lib/Dialect/EmitC/IR/EmitC.cpp b/mlir/lib/Dialect/EmitC/IR/EmitC.cpp index e6a3154721fa..e79da9268693 100644 --- a/mlir/lib/Dialect/EmitC/IR/EmitC.cpp +++ b/mlir/lib/Dialect/EmitC/IR/EmitC.cpp @@ -114,11 +114,8 @@ bool mlir::emitc::isIntegerIndexOrOpaqueType(Type type) { bool mlir::emitc::isSupportedFloatType(Type type) { if (auto floatType = llvm::dyn_cast<FloatType>(type)) { switch (floatType.getWidth()) { - case 16: { - if (llvm::isa<Float16Type, BFloat16Type>(type)) - return true; - return false; - } + case 16: + return llvm::isa<Float16Type, BFloat16Type>(type); case 32: case 64: return true; |
