We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 896f309 commit 0b3fc78Copy full SHA for 0b3fc78
clang/lib/CodeGen/ModuleBuilder.cpp
@@ -288,7 +288,6 @@ namespace {
288
}
289
290
void HandleTranslationUnit(ASTContext &Ctx) override {
291
- IRGenFinished = true;
292
293
// Release the Builder when there is no error.
294
if (!Diags.hasUnrecoverableErrorOccurred() && Builder)
@@ -300,8 +299,9 @@ namespace {
300
299
if (Builder)
301
Builder->clear();
302
M.reset();
303
- return;
304
+
+ IRGenFinished = true;
305
306
307
void AssignInheritanceModel(CXXRecordDecl *RD) override {
0 commit comments