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:
Sasha Krassovsky
2019-07-10 16:39:36 -07:00
committed by Jordan Rose
parent 7e5521cd89
commit 7c5b54f17f
2 changed files with 5 additions and 1 deletions

View File

@@ -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.