summaryrefslogtreecommitdiff
path: root/src/compiler_llvm/compiler_llvm.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler_llvm/compiler_llvm.cc')
-rw-r--r--src/compiler_llvm/compiler_llvm.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/compiler_llvm/compiler_llvm.cc b/src/compiler_llvm/compiler_llvm.cc
index dc3b7cbcf2..7563fe009d 100644
--- a/src/compiler_llvm/compiler_llvm.cc
+++ b/src/compiler_llvm/compiler_llvm.cc
@@ -78,9 +78,11 @@ void InitializeLLVM() {
llvm::llvm_start_multithreaded();
}
-// Singleton. Otherwise, multiple CompilerLLVM instances may cause crashes if
-// one shuts down prematurely.
-llvm::llvm_shutdown_obj llvm_guard;
+// The Guard to Shutdown LLVM
+//llvm::llvm_shutdown_obj llvm_guard;
+// TODO: We are commenting this line because this will cause SEGV. This may
+// related to two possible reasons: (1) the order of the destruction of static
+// objects, and (2) dlopen/dlclose side-effect on static objects.
} // anonymous namespace