Skip to content

Commit d60ca88

Browse files
tblahkrishna2803
authored andcommitted
[mlir][OpenMP][NFC] Fix gcc 14 warning (llvm#151941)
GCC couldn't tell that the enum is checked exhaustively and so was warning about there being no return on this path from the function.
1 parent 883d78f commit d60ca88

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3391,6 +3391,7 @@ static llvm::omp::Directive convertCancellationConstructType(
33913391
case omp::ClauseCancellationConstructType::Taskgroup:
33923392
return llvm::omp::Directive::OMPD_taskgroup;
33933393
}
3394+
llvm_unreachable("Unhandled cancellation construct type");
33943395
}
33953396

33963397
static LogicalResult

0 commit comments

Comments
 (0)