mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge remote-tracking branch 'origin/main' into rebranch
This commit is contained in:
@@ -1963,12 +1963,14 @@ bool IRGenModule::finalize() {
|
||||
}
|
||||
emitLazyPrivateDefinitions();
|
||||
|
||||
// Finalize clang IR-generation.
|
||||
finalizeClangCodeGen();
|
||||
|
||||
// Finalize Swift debug info before running Clang codegen, because it may
|
||||
// delete the llvm module.
|
||||
if (DebugInfo)
|
||||
DebugInfo->finalize();
|
||||
|
||||
// Finalize clang IR-generation.
|
||||
finalizeClangCodeGen();
|
||||
|
||||
// If that failed, report failure up and skip the final clean-up.
|
||||
if (!ClangCodeGen->GetModule())
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user