[clang] [CIR] Add the ability to detect if SwitchOp covers all the cases (PR #171246)
Jasmine Tang via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 10 02:36:23 PST 2025
================
@@ -1105,6 +1105,8 @@ mlir::LogicalResult CIRGenFunction::emitSwitchStmt(const clang::SwitchStmt &s) {
terminateBody(builder, caseOp.getCaseRegion(), caseOp.getLoc());
terminateBody(builder, swop.getBody(), swop.getLoc());
+ swop.setAllEnumCasesCovered(s.isAllEnumCasesCovered());
----------------
badumbatish wrote:
yep should be in now
https://github.com/llvm/llvm-project/pull/171246
More information about the cfe-commits
mailing list