]> granicus.if.org Git - clang/commitdiff
Fix examples for recent shared_ptrification
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 5 Jan 2017 22:36:44 +0000 (22:36 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 5 Jan 2017 22:36:44 +0000 (22:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@291185 91177308-0d34-0410-b5e6-96231b3b80d8

examples/clang-interpreter/main.cpp

index 9b4a257bcba34ed66a4035fb07f65eb66e3961fa..f7832291f2b6283fb91b5a8f05a6a9be156437fc 100644 (file)
@@ -145,7 +145,7 @@ int main(int argc, const char **argv, char * const *envp) {
 
   // 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();