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.
1 parent 8f011e2 commit 0f98d1bCopy full SHA for 0f98d1b
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