mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Change SerializedSILLoader::create to return a unique_ptr and use that everywhere so we don't leak SILLoaders.
Swift SVN r15700
This commit is contained in:
@@ -588,7 +588,7 @@ SILVTable *SILModule::lookUpVTable(const ClassDecl *C) {
|
||||
|
||||
SerializedSILLoader *SILModule::getSILLoader() {
|
||||
// If the SILLoader is null, create it.
|
||||
if (SILLoader.isNull())
|
||||
if (!SILLoader)
|
||||
SILLoader = SerializedSILLoader::create(getASTContext(), this,
|
||||
Callback.get());
|
||||
// Return the SerializedSILLoader.
|
||||
|
||||
Reference in New Issue
Block a user