[clang] b8d2b6f - Unbreak the clang-interpreter example after 0aec49c8531bc5282b095730d34681455826bc2c
Benjamin Kramer via cfe-commits
cfe-commits at lists.llvm.org
Sat Oct 24 10:03:16 PDT 2020
Author: Benjamin Kramer
Date: 2020-10-24T19:01:21+02:00
New Revision: b8d2b6f6cf6015751fc950c3e8149404e8b37fe8
URL: https://github.com/llvm/llvm-project/commit/b8d2b6f6cf6015751fc950c3e8149404e8b37fe8
DIFF: https://github.com/llvm/llvm-project/commit/b8d2b6f6cf6015751fc950c3e8149404e8b37fe8.diff
LOG: Unbreak the clang-interpreter example after 0aec49c8531bc5282b095730d34681455826bc2c
Added:
Modified:
clang/examples/clang-interpreter/main.cpp
Removed:
################################################################################
diff --git a/clang/examples/clang-interpreter/main.cpp b/clang/examples/clang-interpreter/main.cpp
index 6b4cdca15fb0..342d42089472 100644
--- a/clang/examples/clang-interpreter/main.cpp
+++ b/clang/examples/clang-interpreter/main.cpp
@@ -72,6 +72,11 @@ class SimpleJIT {
}
public:
+ ~SimpleJIT() {
+ if (auto Err = ES.endSession())
+ ES.reportError(std::move(Err));
+ }
+
static Expected<std::unique_ptr<SimpleJIT>> Create() {
auto JTMB = JITTargetMachineBuilder::detectHost();
if (!JTMB)
More information about the cfe-commits
mailing list