We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents badc091 + 0f98d1b commit fde3e5eCopy full SHA for fde3e5e
clang/lib/CIR/CodeGen/CIRGenerator.cpp
@@ -43,6 +43,8 @@ void CIRGenerator::Initialize(ASTContext &astContext) {
43
mlir::ModuleOp CIRGenerator::getModule() const { return cgm->getModule(); }
44
45
bool CIRGenerator::HandleTopLevelDecl(DeclGroupRef group) {
46
+ if (diags.hasUnrecoverableErrorOccurred())
47
+ return true;
48
49
for (Decl *decl : group)
50
cgm->emitTopLevelDecl(decl);
0 commit comments