Browse Source

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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@291252 91177308-0d34-0410-b5e6-96231b3b80d8
David Blaikie 8 năm trước cách đây
mục cha
commit
95fe8f8c7d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      examples/clang-interpreter/main.cpp

+ 1 - 1
examples/clang-interpreter/main.cpp

@@ -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();