Skip to content

Commit

Permalink
Turn off memory leaks in unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
d0k committed Sep 14, 2023
1 parent 8d5c1b4 commit 263fc4c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clang/unittests/Serialization/ForceCheckFileInputTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export int aa = 43;
std::shared_ptr<CompilerInvocation> Invocation =
createInvocation(Args, CIOpts);
EXPECT_TRUE(Invocation);
Invocation->getFrontendOpts().DisableFree = false;

auto Buf = CIOpts.VFS->getBufferForFile("a.cppm");
EXPECT_TRUE(Buf);
Expand Down Expand Up @@ -113,6 +114,7 @@ export int aa = 43;
std::shared_ptr<CompilerInvocation> Invocation =
createInvocation(Args, CIOpts);
EXPECT_TRUE(Invocation);
Invocation->getFrontendOpts().DisableFree = false;

CompilerInstance Clang;

Expand Down

0 comments on commit 263fc4c

Please sign in to comment.