Author: Amr Hesham Date: 2026-03-07T14:27:35+01:00 New Revision: fe7d245c187b3c53de72662f177574f7e5c2167a
URL: https://github.com/llvm/llvm-project/commit/fe7d245c187b3c53de72662f177574f7e5c2167a DIFF: https://github.com/llvm/llvm-project/commit/fe7d245c187b3c53de72662f177574f7e5c2167a.diff LOG: [CIR][NFC] ComplexType visitStmt replace NYI with unreachable (#185178) Replace errorNYI with llvm_unreachable in ComplexType visitStmt Added: Modified: clang/lib/CIR/CodeGen/CIRGenExprComplex.cpp Removed: ################################################################################ diff --git a/clang/lib/CIR/CodeGen/CIRGenExprComplex.cpp b/clang/lib/CIR/CodeGen/CIRGenExprComplex.cpp index c57f9a3b2ce9d..ff5a58a8eb122 100644 --- a/clang/lib/CIR/CodeGen/CIRGenExprComplex.cpp +++ b/clang/lib/CIR/CodeGen/CIRGenExprComplex.cpp @@ -61,8 +61,8 @@ class ComplexExprEmitter : public StmtVisitor<ComplexExprEmitter, mlir::Value> { } mlir::Value VisitStmt(Stmt *s) { - cgf.cgm.errorNYI(s->getBeginLoc(), "ComplexExprEmitter VisitStmt"); - return {}; + s->dump(llvm::errs(), cgf.getContext()); + llvm_unreachable("Stmt can't have complex result type!"); } mlir::Value VisitExpr(Expr *e); _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
