Skip to content

Commit

Permalink
[clang][Interp][NFC] Reject unimplemented cast expressions differently
Browse files Browse the repository at this point in the history
Instead of asserting, emit an appropriate diagnostic.
  • Loading branch information
tbaederr committed Feb 21, 2024
1 parent 453b1a2 commit 13b0321
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/AST/Interp/ByteCodeExprGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ bool ByteCodeExprGen<Emitter>::VisitCastExpr(const CastExpr *CE) {
return discard(SubExpr);

default:
assert(false && "Cast not implemented");
return this->emitInvalid(CE);
}
llvm_unreachable("Unhandled clang::CastKind enum");
}
Expand Down

0 comments on commit 13b0321

Please sign in to comment.