diff options
author | David Blaikie <dblaikie@gmail.com> | 2017-01-05 22:19:11 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2017-01-05 22:19:11 +0000 |
commit | 9280a857bc4cbd43d597003416805d6e12f33830 (patch) | |
tree | b07ae60f1d8c74749829644f5828b994b6ee4f8a /clang/unittests/Frontend/CodeGenActionTest.cpp | |
parent | 04cfed9af5dbe5a67a10c8f0cb4bf030ebf41ae4 (diff) | |
download | bcm5719-llvm-9280a857bc4cbd43d597003416805d6e12f33830.tar.gz bcm5719-llvm-9280a857bc4cbd43d597003416805d6e12f33830.zip |
IntrusiveRefCntPtr -> std::shared_ptr for CompilerInvocationBase and CodeCompleteConsumer
llvm-svn: 291184
Diffstat (limited to 'clang/unittests/Frontend/CodeGenActionTest.cpp')
-rw-r--r-- | clang/unittests/Frontend/CodeGenActionTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/unittests/Frontend/CodeGenActionTest.cpp b/clang/unittests/Frontend/CodeGenActionTest.cpp index 356b5130fcb..1d2a50c8bc2 100644 --- a/clang/unittests/Frontend/CodeGenActionTest.cpp +++ b/clang/unittests/Frontend/CodeGenActionTest.cpp @@ -41,7 +41,7 @@ public: TEST(CodeGenTest, TestNullCodeGen) { - CompilerInvocation *Invocation = new CompilerInvocation; + auto Invocation = std::make_shared<CompilerInvocation>(); Invocation->getPreprocessorOpts().addRemappedFile( "test.cc", MemoryBuffer::getMemBuffer("").release()); @@ -50,7 +50,7 @@ TEST(CodeGenTest, TestNullCodeGen) { Invocation->getFrontendOpts().ProgramAction = EmitLLVM; Invocation->getTargetOpts().Triple = "i386-unknown-linux-gnu"; CompilerInstance Compiler; - Compiler.setInvocation(Invocation); + Compiler.setInvocation(std::move(Invocation)); Compiler.createDiagnostics(); EXPECT_TRUE(Compiler.hasDiagnostics()); |