We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f5aaa1 commit c478744Copy full SHA for c478744
src/ast/general/ASTInfo.cpp
@@ -22,6 +22,10 @@ ASTInfo* ASTInfo::instance()
22
return ASTInfo::_instance;
23
}
24
25
+ASTInfo::~ASTInfo() {
26
+ delete _instance;
27
+}
28
+
29
llvm::GlobalVariable* ASTInfo::get_index_ptr()
30
{
31
return __brain_index_ptr;
src/ast/general/ASTInfo.h
@@ -35,6 +35,7 @@ class ASTInfo
35
public:
36
ASTInfo(ASTInfo const&) = delete;
37
ASTInfo& operator=(ASTInfo const&) = delete;
38
+ ~ASTInfo();
39
/**
40
* @brief Returns the instance of ASTInfo class if the member _instance is
41
* nullptr, otherwise it creates a new ASTInfo object and returns it.
0 commit comments