diff options
Diffstat (limited to 'backend/src/ir')
-rw-r--r-- | backend/src/ir/unit.cpp | 1 | ||||
-rw-r--r-- | backend/src/ir/unit.hpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/backend/src/ir/unit.cpp b/backend/src/ir/unit.cpp index 56042446..c9cb15e3 100644 --- a/backend/src/ir/unit.cpp +++ b/backend/src/ir/unit.cpp @@ -33,6 +33,7 @@ namespace ir { } Unit::~Unit(void) { for (const auto &pair : functions) GBE_DELETE(pair.second); + for (const auto &pair : printfs) GBE_DELETE(pair.second); delete profilingInfo; } Function *Unit::getFunction(const std::string &name) const { diff --git a/backend/src/ir/unit.hpp b/backend/src/ir/unit.hpp index 9b9e41fc..10a1af69 100644 --- a/backend/src/ir/unit.hpp +++ b/backend/src/ir/unit.hpp @@ -47,7 +47,7 @@ namespace ir { public: typedef map<std::string, Function*> FunctionSet; /*! Moved from printf pass */ - map<llvm::CallInst*, PrintfSet::PrintfFmt> printfs; + map<llvm::CallInst*, PrintfSet::PrintfFmt*> printfs; /*! Create an empty unit */ Unit(PointerSize pointerSize = POINTER_32_BITS); /*! Release everything (*including* the function pointers) */ |