r291185 - Fix examples for recent shared_ptrification
David Blaikie via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 5 14:36:44 PST 2017
Author: dblaikie
Date: Thu Jan 5 16:36:44 2017
New Revision: 291185
URL: http://llvm.org/viewvc/llvm-project?rev=291185&view=rev
Log:
Fix examples for recent shared_ptrification
Modified:
cfe/trunk/examples/clang-interpreter/main.cpp
Modified: cfe/trunk/examples/clang-interpreter/main.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/examples/clang-interpreter/main.cpp?rev=291185&r1=291184&r2=291185&view=diff
==============================================================================
--- cfe/trunk/examples/clang-interpreter/main.cpp (original)
+++ cfe/trunk/examples/clang-interpreter/main.cpp Thu Jan 5 16:36:44 2017
@@ -145,7 +145,7 @@ int main(int argc, const char **argv, ch
// Create a compiler instance to handle the actual work.
CompilerInstance Clang;
- Clang.setInvocation(CI.release());
+ Clang.setInvocation(std::move(CI));
// Create the compilers actual diagnostics engine.
Clang.createDiagnostics();
More information about the cfe-commits
mailing list