mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Declare SourceFile::~SourceFile() in header (#26059)
There was an error when including Module.h in an external project with std::default_delete being instantiated when making a std::unique_ptr. This change declares destructor in header file and sets it to default in cpp file.
This commit is contained in:
committed by
Jordan Rose
parent
7e5521cd89
commit
7c5b54f17f
@@ -116,6 +116,8 @@ BuiltinUnit::BuiltinUnit(ModuleDecl &M)
|
||||
// Normal Module Name Lookup
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
SourceFile::~SourceFile() = default;
|
||||
|
||||
class SourceFile::LookupCache {
|
||||
/// A lookup map for value decls. When declarations are added they are added
|
||||
/// under all variants of the name they can be found under.
|
||||
|
||||
Reference in New Issue
Block a user