]> granicus.if.org Git - clang/commitdiff
Revert "Fix examples for recent shared_ptrification"
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 6 Jan 2017 17:50:34 +0000 (17:50 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 6 Jan 2017 17:50:34 +0000 (17:50 +0000)
(should've rolled in to this revert of the CompilerInstance change in
the first place... anyway)

This reverts commit r291185.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@291252 91177308-0d34-0410-b5e6-96231b3b80d8

examples/clang-interpreter/main.cpp

index f7832291f2b6283fb91b5a8f05a6a9be156437fc..9b4a257bcba34ed66a4035fb07f65eb66e3961fa 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(std::move(CI));
+  Clang.setInvocation(CI.release());
 
   // Create the compilers actual diagnostics engine.
   Clang.createDiagnostics();