We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af7b1c8 commit 8c67c54Copy full SHA for 8c67c54
IGC/VectorCompiler/lib/Driver/Driver.cpp
@@ -63,6 +63,10 @@ SPDX-License-Identifier: MIT
63
64
using namespace llvm;
65
66
+// Custom destructor for cleaning up all LLVM ManagedStatic allocated instances
67
+static const auto StaticLLVMObjectsDestructor =
68
+ llvm::make_scope_exit([]() { llvm::llvm_shutdown(); });
69
+
70
static Expected<std::unique_ptr<llvm::Module>>
71
getModuleFromLLVMText(ArrayRef<char> Input, LLVMContext &C) {
72
SMDiagnostic Err;
0 commit comments