Skip to content

Commit 7782900

Browse files
committed
Fix another instance of CachedFileStream not being committed.
1 parent 3fdba46 commit 7782900

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/CGData/CodeGenData.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,9 @@ void saveModuleForTwoRounds(const Module &TheModule, unsigned Task,
233233

234234
WriteBitcodeToFile(TheModule, *Stream->OS,
235235
/*ShouldPreserveUseListOrder=*/true);
236+
237+
if (Error Err = Stream->commit())
238+
report_fatal_error(std::move(Err));
236239
}
237240

238241
std::unique_ptr<Module> loadModuleForTwoRounds(BitcodeModule &OrigModule,

0 commit comments

Comments
 (0)