Skip to content

Commit f179daf

Browse files
[mlir] Fix a warning
This patch fixes: mlir/lib/Target/LLVMIR/Dialect/NVVM/NVVMToLLVMIRTranslation.cpp:121:3: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default]
1 parent f6b1b91 commit f179daf

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

mlir/lib/Target/LLVMIR/Dialect/NVVM/NVVMToLLVMIRTranslation.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,6 @@ static llvm::Intrinsic::ID getMatchSyncIntrinsicId(Type valType,
118118
// the latter as that's the variant exposed by CUDA API.
119119
return valType.isInteger(32) ? llvm::Intrinsic::nvvm_match_all_sync_i32p
120120
: llvm::Intrinsic::nvvm_match_all_sync_i64p;
121-
default:
122-
llvm_unreachable("unknown match sync kind");
123121
}
124122
}
125123

0 commit comments

Comments
 (0)