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.

llvm-svn: 291252
This commit is contained in:
David Blaikie 2017-01-06 17:50:34 +00:00
parent 2376c392f7
commit 98f0af4b3e
1 changed files with 1 additions and 1 deletions

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