Skip to content

Commit b14cfc3

Browse files
Replace llvm_unreachable with errorNYI
1 parent 03d718c commit b14cfc3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,8 @@ RValue CIRGenFunction::emitBuiltinExpr(const GlobalDecl &gd, unsigned builtinID,
439439
case Builtin::BI__builtin_coro_end:
440440
case Builtin::BI__builtin_coro_suspend:
441441
case Builtin::BI__builtin_coro_align:
442-
llvm_unreachable("Error NYI");
442+
cgm.errorNYI(e->getSourceRange(), "BI__builtin_coro_id like NYI");
443+
return getUndefRValue(e->getType());
443444

444445
case Builtin::BI__builtin_coro_frame: {
445446
cgm.errorNYI(e->getSourceRange(), "BI__builtin_coro_frame NYI");

0 commit comments

Comments
 (0)