Skip to content
Snippets Groups Projects
Commit 95fe8f8c authored by David Blaikie's avatar David Blaikie
Browse files

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
parent 471e0b27
No related branches found
No related tags found
No related merge requests found
...@@ -145,7 +145,7 @@ int main(int argc, const char **argv, char * const *envp) { ...@@ -145,7 +145,7 @@ int main(int argc, const char **argv, char * const *envp) {
// Create a compiler instance to handle the actual work. // Create a compiler instance to handle the actual work.
CompilerInstance Clang; CompilerInstance Clang;
Clang.setInvocation(std::move(CI)); Clang.setInvocation(CI.release());
// Create the compilers actual diagnostics engine. // Create the compilers actual diagnostics engine.
Clang.createDiagnostics(); Clang.createDiagnostics();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment