# HG changeset patch # User Frits van Bommel # Date 1235586606 -3600 # Node ID 73ff89728d85d422d6b2437fdfff226826266174 # Parent a8cb25d478c4644e1b4deb900ec05743b11d889f Call llvm_shutdown when shutting down the backend. diff -r a8cb25d478c4 -r 73ff89728d85 gen/toir.cpp --- a/gen/toir.cpp Wed Feb 25 17:34:51 2009 +0100 +++ b/gen/toir.cpp Wed Feb 25 19:30:06 2009 +0100 @@ -37,6 +37,8 @@ #include "gen/functions.h" #include "gen/todebug.h" +#include "llvm/Support/ManagedStatic.h" + ////////////////////////////////////////////////////////////////////////////////////////// DValue* DeclarationExp::toElem(IRState* p) @@ -2775,4 +2777,5 @@ void backend_term() { LLVM_D_FreeRuntime(); + llvm::llvm_shutdown(); }