From 95fe8f8c7da9f8b233457c976aec93c5664272cd Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Fri, 6 Jan 2017 17:50:34 +0000 Subject: 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 --- examples/clang-interpreter/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/clang-interpreter/main.cpp b/examples/clang-interpreter/main.cpp index f7832291f2..9b4a257bcb 100644 --- a/examples/clang-interpreter/main.cpp +++ b/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(); -- cgit v1.2.3