aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main.rs
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2021-09-22 22:38:41 +0200
committerJohannes Stoelp <johannes.stoelp@gmail.com>2021-09-22 22:38:41 +0200
commit96006e40ce34dcae0cdd3a94b1b329c9ff633831 (patch)
treec27313c6773d11ded56d73c2b756478922117c1b /src/main.rs
parentcd62c3f8ccce0d834c333edafe2a825126c2bef6 (diff)
downloadllvm-kaleidoscope-rs-96006e40ce34dcae0cdd3a94b1b329c9ff633831.tar.gz
llvm-kaleidoscope-rs-96006e40ce34dcae0cdd3a94b1b329c9ff633831.zip
add llvm shutdown to free allocated memory
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 7160e04..be3dede 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -98,4 +98,6 @@ fn main() {
// Dump all the emitted LLVM IR to stdout.
module.dump();
+
+ llvm::shutdown();
}