File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -215,6 +215,7 @@ struct MissingFeatures {
215215 static bool coverageMapping () { return false ; }
216216 static bool peepholeProtection () { return false ; }
217217 static bool instrumentation () { return false ; }
218+ static bool cleanupAfterErrorDiags () { return false ; }
218219
219220 // Missing types
220221 static bool dataMemberType () { return false ; }
Original file line number Diff line number Diff line change @@ -74,13 +74,9 @@ void CIRGenerator::HandleTranslationUnit(ASTContext &astContext) {
7474 if (!diags.hasErrorOccurred () && cgm)
7575 cgm->release ();
7676
77- // If there are errors before or when releasing the CGM , reset the module to
77+ // If there are errors before or when releasing the cgm , reset the module to
7878 // stop here before invoking the backend.
79- if (diags.hasErrorOccurred ()) {
80- if (cgm)
81- // TODO: cgm->clear();
82- return ;
83- }
79+ assert (!cir::MissingFeatures::cleanupAfterErrorDiags ());
8480}
8581
8682void CIRGenerator::HandleInlineFunctionDefinition (FunctionDecl *d) {
You can’t perform that action at this time.
0 commit comments