Skip to content

Commit ee0b0aa

Browse files
Remove foldcase from missing features
1 parent ff564e6 commit ee0b0aa

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

clang/include/clang/CIR/MissingFeatures.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ struct MissingFeatures {
161161
static bool targetSpecificCXXABI() { return false; }
162162
static bool moduleNameHash() { return false; }
163163
static bool setDSOLocal() { return false; }
164-
static bool foldCaseStmt() { return false; }
165164
static bool constantFoldSwitchStatement() { return false; }
166165

167166
// Missing types

clang/lib/CIR/CodeGen/CIRGenStmt.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,6 @@ mlir::LogicalResult CIRGenFunction::emitCaseStmt(const CaseStmt &s,
565565
bool buildingTopLevelCase) {
566566
cir::CaseOpKind kind;
567567
mlir::ArrayAttr value;
568-
assert(!cir::MissingFeatures::foldCaseStmt());
569568
const CaseStmt *caseStmt = foldCaseStmt(s, condType, value, kind);
570569
return emitCaseDefaultCascade(caseStmt, condType, value, kind,
571570
buildingTopLevelCase);

0 commit comments

Comments
 (0)