summaryrefslogtreecommitdiffstats
path: root/clang/unittests/AST/ExternalASTSourceTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/unittests/AST/ExternalASTSourceTest.cpp')
-rw-r--r--clang/unittests/AST/ExternalASTSourceTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/unittests/AST/ExternalASTSourceTest.cpp b/clang/unittests/AST/ExternalASTSourceTest.cpp
index 513ff5b99fa..4b3bb3e2b69 100644
--- a/clang/unittests/AST/ExternalASTSourceTest.cpp
+++ b/clang/unittests/AST/ExternalASTSourceTest.cpp
@@ -49,14 +49,14 @@ bool testExternalASTSource(ExternalASTSource *Source,
CompilerInstance Compiler;
Compiler.createDiagnostics();
- auto Invocation = std::make_shared<CompilerInvocation>();
+ CompilerInvocation *Invocation = new CompilerInvocation;
Invocation->getPreprocessorOpts().addRemappedFile(
"test.cc", MemoryBuffer::getMemBuffer(FileContents).release());
const char *Args[] = { "test.cc" };
CompilerInvocation::CreateFromArgs(*Invocation, Args,
Args + array_lengthof(Args),
Compiler.getDiagnostics());
- Compiler.setInvocation(std::move(Invocation));
+ Compiler.setInvocation(Invocation);
TestFrontendAction Action(Source);
return Compiler.ExecuteAction(Action);
OpenPOWER on IntegriCloud