Do not prevent copy elision.

This commit is contained in:
Vassil Vassilev 2017-10-12 15:47:21 +02:00 committed by sftnight
parent 97f45536c3
commit 6e1865dafb

View File

@ -211,7 +211,7 @@ namespace cling {
std::vector<std::unique_ptr<ASTConsumer>> Consumers;
Consumers.push_back(std::move(wrapper));
Consumers.push_back(std::move(m_Interpreter->getCI()->takeASTConsumer()));
Consumers.push_back(m_Interpreter->getCI()->takeASTConsumer());
std::unique_ptr<clang::MultiplexConsumer> multiConsumer(
new clang::MultiplexConsumer(std::move(Consumers)));