about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
-rw-r--r--compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
index 861c0a6e79a..91f54da5c12 100644
--- a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
+++ b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
@@ -110,8 +110,8 @@ static void BadAllocErrorHandler(void *UserData,
 }
 
 extern "C" void LLVMRustInstallErrorHandlers() {
-  install_fatal_error_handler(FatalErrorHandler);
   install_bad_alloc_error_handler(BadAllocErrorHandler);
+  install_fatal_error_handler(FatalErrorHandler);
   install_out_of_memory_new_handler();
 }