diff options
author | Sunho Kim <ksunhokim123@gmail.com> | 2022-06-26 21:57:05 +0900 |
---|---|---|
committer | Sunho Kim <ksunhokim123@gmail.com> | 2022-06-26 22:10:28 +0900 |
commit | 45b6c38145e72d8a2593f9637c01015122b0b28c (patch) | |
tree | f26b4d552aacbffe980bf01f291b72013e962d4a /clang/lib/Interpreter/Interpreter.cpp | |
parent | 31ae52859f7a2339f31bb78c5163c23cb872f179 (diff) | |
download | llvm-45b6c38145e72d8a2593f9637c01015122b0b28c.zip llvm-45b6c38145e72d8a2593f9637c01015122b0b28c.tar.gz llvm-45b6c38145e72d8a2593f9637c01015122b0b28c.tar.bz2 |
Revert "[clang-repl] Support destructors of global objects."
This reverts commit 9de8b05bfe0de2915d2443d06159396c5f9d389f.
Diffstat (limited to 'clang/lib/Interpreter/Interpreter.cpp')
-rw-r--r-- | clang/lib/Interpreter/Interpreter.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/clang/lib/Interpreter/Interpreter.cpp b/clang/lib/Interpreter/Interpreter.cpp index 0ffb40c..a10eb79 100644 --- a/clang/lib/Interpreter/Interpreter.cpp +++ b/clang/lib/Interpreter/Interpreter.cpp @@ -183,14 +183,7 @@ Interpreter::Interpreter(std::unique_ptr<CompilerInstance> CI, *TSCtx->getContext(), Err); } -Interpreter::~Interpreter() { - if (IncrExecutor) { - if (llvm::Error Err = IncrExecutor->cleanUp()) - llvm::report_fatal_error( - llvm::Twine("Failed to clean up IncrementalExecutor: ") + - toString(std::move(Err))); - } -} +Interpreter::~Interpreter() {} llvm::Expected<std::unique_ptr<Interpreter>> Interpreter::create(std::unique_ptr<CompilerInstance> CI) { |