Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions llvm/unittests/Analysis/FunctionPropertiesAnalysisTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ class FunctionPropertiesAnalysisTest : public testing::Test {
ir2vec::ArgWeight = 1.0;
}

~FunctionPropertiesAnalysisTest() override {
delete IR2VecVocab;
IR2VecVocab = nullptr;
}

private:
float OriginalOpcWeight = ir2vec::OpcWeight;
float OriginalTypeWeight = ir2vec::TypeWeight;
Expand Down
4 changes: 4 additions & 0 deletions llvm/unittests/Analysis/IR2VecTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,10 @@ class IR2VecTestFixture : public ::testing::Test {
AddInst = BinaryOperator::CreateAdd(Arg, Const, "add", BB);
RetInst = ReturnInst::Create(Ctx, AddInst, BB);
}
void TearDown() override {
delete V ;
V = nullptr;
}
};

TEST_F(IR2VecTestFixture, GetInstVecMap_Symbolic) {
Expand Down
Loading