summaryrefslogtreecommitdiffstats
path: root/clang/include/clang/Frontend/CompilerInstance.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/include/clang/Frontend/CompilerInstance.h')
-rw-r--r--clang/include/clang/Frontend/CompilerInstance.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/include/clang/Frontend/CompilerInstance.h b/clang/include/clang/Frontend/CompilerInstance.h
index 44e91026acb..413c3600b50 100644
--- a/clang/include/clang/Frontend/CompilerInstance.h
+++ b/clang/include/clang/Frontend/CompilerInstance.h
@@ -459,7 +459,7 @@ public:
return *TheSema;
}
- Sema *takeSema() { return TheSema.release(); }
+ std::unique_ptr<Sema> takeSema() { return std::move(TheSema); }
void resetAndLeakSema() { BuryPointer(TheSema.release()); }
/// }
OpenPOWER on IntegriCloud