Skip to content

Commit 96de843

Browse files
authored
[mlir][NVVM] Fix default label unreachable warning in getVoteSyncIntrinsicId (#134600)
Fixes the following warning after the changes in #134309: ``` llvm-project/mlir/lib/Target/LLVMIR/Dialect/NVVM/NVVMToLLVMIRTranslation.cpp:134:3: warning: default label in switch which covers all enumeration values [-Wcovered-switch-default] default: ^ 1 warning generated. ```
1 parent b9ec684 commit 96de843

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,8 @@ static llvm::Intrinsic::ID getVoteSyncIntrinsicId(NVVM::VoteSyncKind kind) {
131131
return llvm::Intrinsic::nvvm_vote_ballot_sync;
132132
case NVVM::VoteSyncKind::uni:
133133
return llvm::Intrinsic::nvvm_vote_uni_sync;
134-
default:
135-
llvm_unreachable("unsupported vote kind");
136134
}
135+
llvm_unreachable("unsupported vote kind");
137136
}
138137

139138
/// Return the intrinsic ID associated with ldmatrix for the given paramters.

0 commit comments

Comments
 (0)