Hopefully this fixes the libstdc++ build on some of the buildbots after
r215321.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215325
91177308-0d34-0410-b5e6-
96231b3b80d8
return *TheSema;
}
- std::unique_ptr<Sema> takeSema() { return std::move(TheSema); }
+ std::unique_ptr<Sema> takeSema();
void resetAndLeakSema() { BuryPointer(TheSema.release()); }
/// }
void CompilerInstance::setCodeCompletionConsumer(CodeCompleteConsumer *Value) {
CompletionConsumer.reset(Value);
}
-
+
+std::unique_ptr<Sema> CompilerInstance::takeSema() {
+ return std::move(TheSema);
+}
+
IntrusiveRefCntPtr<ASTReader> CompilerInstance::getModuleManager() const {
return ModuleManager;
}