mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Generalize and fix compiler resource freeing before LLVM
Centralize part of the routine that selects which resources to free. Then, add an additional condition for -dump-api-path. Before, if this option were specified along with -emit-llvm or -c, the compiler would try to rebuild the torn-down ModuleDecl and crash trying to access the torn-down ASTContext.
This commit is contained in:
@@ -625,8 +625,7 @@ public:
|
||||
/// \param silModule The SIL module that was generated during SILGen.
|
||||
/// \param stats A stats reporter that will report optimization statistics.
|
||||
/// \returns true if any errors occurred.
|
||||
bool performSILProcessing(SILModule *silModule,
|
||||
UnifiedStatsReporter *stats = nullptr);
|
||||
bool performSILProcessing(SILModule *silModule);
|
||||
|
||||
private:
|
||||
SourceFile *
|
||||
|
||||
Reference in New Issue
Block a user