Skip to content

Commit 86f0e23

Browse files
committed
[CIR] Replace an assert with an unreachable
1 parent edfc0b9 commit 86f0e23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CIR/CodeGen/CIRGenExprConst.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ class ConstExprEmitter
704704

705705
mlir::Attribute VisitCastExpr(CastExpr *E, QualType destType) {
706706
if (const auto *ECE = dyn_cast<ExplicitCastExpr>(E))
707-
assert(0 && "not implemented");
707+
llvm_unreachable("NYI");
708708
Expr *subExpr = E->getSubExpr();
709709

710710
switch (E->getCastKind()) {

0 commit comments

Comments
 (0)