Workaround on SEGV of LLVM backend.
(cherry picked from commit ef55ccce6460079c75745ba6ebea99d189980779)
Change-Id: I940e237ab17d027c20273da12b45f091b0cd9f59
diff --git a/src/compiler_llvm/compiler_llvm.cc b/src/compiler_llvm/compiler_llvm.cc
index dc3b7cb..7563fe0 100644
--- a/src/compiler_llvm/compiler_llvm.cc
+++ b/src/compiler_llvm/compiler_llvm.cc
@@ -78,9 +78,11 @@
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