================
@@ -43,6 +43,8 @@ void CIRGenerator::Initialize(ASTContext &astContext) {
mlir::ModuleOp CIRGenerator::getModule() const { return cgm->getModule(); }
bool CIRGenerator::HandleTopLevelDecl(DeclGroupRef group) {
+ if (diags.hasUnrecoverableErrorOccurred())
+ return true;
----------------
erichkeane wrote:
It honestly doesn't really matter, we currently delay the codegen in clang
until parsing/sema is complete anyway (except for REPL). I'd probably leave it
for now, as I wouldn't want this to be a changed behavior.
https://github.com/llvm/llvm-project/pull/130971
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits