From 62a56f39b7c5587a1b2144880500689bea5f32e4 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Thu, 17 Jul 2014 22:34:12 +0000 Subject: Revert "unique_ptr-ify ownership of ASTConsumers" This reverts commit r213307. Reverting to have some on-list discussion/confirmation about the ongoing direction of smart pointer usage in the LLVM project. llvm-svn: 213325 --- clang/lib/Frontend/CompilerInstance.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/lib/Frontend/CompilerInstance.cpp') diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp index 7e4ffb18874..7cea9e4efc0 100644 --- a/clang/lib/Frontend/CompilerInstance.cpp +++ b/clang/lib/Frontend/CompilerInstance.cpp @@ -101,8 +101,8 @@ void CompilerInstance::setSema(Sema *S) { TheSema.reset(S); } -void CompilerInstance::setASTConsumer(std::unique_ptr Value) { - Consumer = std::move(Value); +void CompilerInstance::setASTConsumer(ASTConsumer *Value) { + Consumer.reset(Value); } void CompilerInstance::setCodeCompletionConsumer(CodeCompleteConsumer *Value) { -- cgit v1.2.3