r291252 - Revert "Fix examples for recent shared_ptrification"

David Blaikie via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 6 09:50:34 PST 2017


Author: dblaikie
Date: Fri Jan  6 11:50:34 2017
New Revision: 291252

URL: http://llvm.org/viewvc/llvm-project?rev=291252&view=rev
Log:
Revert "Fix examples for recent shared_ptrification"

(should've rolled in to this revert of the CompilerInstance change in
the first place... anyway)

This reverts commit r291185.

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=291252&r1=291251&r2=291252&view=diff
==============================================================================
--- cfe/trunk/examples/clang-interpreter/main.cpp (original)
+++ cfe/trunk/examples/clang-interpreter/main.cpp Fri Jan  6 11:50:34 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(std::move(CI));
+  Clang.setInvocation(CI.release());
 
   // Create the compilers actual diagnostics engine.
   Clang.createDiagnostics();




More information about the cfe-commits mailing list