[clang] 263fc4c - Turn off memory leaks in unit test
Benjamin Kramer via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 14 04:16:43 PDT 2023
Author: Benjamin Kramer
Date: 2023-09-14T13:16:22+02:00
New Revision: 263fc4c79a2b41a57dd1bf3a17873002c5d69265
URL: https://github.com/llvm/llvm-project/commit/263fc4c79a2b41a57dd1bf3a17873002c5d69265
DIFF: https://github.com/llvm/llvm-project/commit/263fc4c79a2b41a57dd1bf3a17873002c5d69265.diff
LOG: Turn off memory leaks in unit test
Added:
Modified:
clang/unittests/Serialization/ForceCheckFileInputTest.cpp
Removed:
################################################################################
diff --git a/clang/unittests/Serialization/ForceCheckFileInputTest.cpp b/clang/unittests/Serialization/ForceCheckFileInputTest.cpp
index c1f6d40767751e4..ed0daa43436eb6d 100644
--- a/clang/unittests/Serialization/ForceCheckFileInputTest.cpp
+++ b/clang/unittests/Serialization/ForceCheckFileInputTest.cpp
@@ -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);
@@ -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;
More information about the cfe-commits
mailing list