summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-07-17 22:34:12 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-07-17 22:34:12 +0000
commit62a56f39b7c5587a1b2144880500689bea5f32e4 (patch)
treec6f21dd30c4dfd02f50e4ca54712b24f2022a6f4 /clang/lib/Frontend/CompilerInstance.cpp
parent5bae2c87d5946ee72ad31d88033ed5ecbd01ada2 (diff)
downloadbcm5719-llvm-62a56f39b7c5587a1b2144880500689bea5f32e4.tar.gz
bcm5719-llvm-62a56f39b7c5587a1b2144880500689bea5f32e4.zip
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
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInstance.cpp4
1 files changed, 2 insertions, 2 deletions
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<ASTConsumer> Value) {
- Consumer = std::move(Value);
+void CompilerInstance::setASTConsumer(ASTConsumer *Value) {
+ Consumer.reset(Value);
}
void CompilerInstance::setCodeCompletionConsumer(CodeCompleteConsumer *Value) {
OpenPOWER on IntegriCloud