Skip to content

Commit d6da92d

Browse files
tblahjoker-eph
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 ab9a1d4 commit d6da92d

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
@@ -3395,6 +3395,7 @@ static llvm::omp::Directive convertCancellationConstructType(
33953395
case omp::ClauseCancellationConstructType::Taskgroup:
33963396
return llvm::omp::Directive::OMPD_taskgroup;
33973397
}
3398+
llvm_unreachable("Unhandled cancellation construct type");
33983399
}
33993400

34003401
static LogicalResult

0 commit comments

Comments
 (0)