summaryrefslogtreecommitdiff
path: root/tools/llvm-ranlib
diff options
context:
space:
mode:
Diffstat (limited to 'tools/llvm-ranlib')
-rw-r--r--tools/llvm-ranlib/llvm-ranlib.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-ranlib/llvm-ranlib.cpp b/tools/llvm-ranlib/llvm-ranlib.cpp
index a311c52802..dffe3ada5f 100644
--- a/tools/llvm-ranlib/llvm-ranlib.cpp
+++ b/tools/llvm-ranlib/llvm-ranlib.cpp
@@ -49,7 +49,7 @@ int main(int argc, char **argv) {
llvm::sys::PrintStackTraceOnErrorSignal();
llvm::PrettyStackTraceProgram X(argc, argv);
- LLVMContext Context;
+ LLVMContext &Context = getGlobalContext();
llvm_shutdown_obj Y; // Call llvm_shutdown() on exit.
// Have the command line options parsed and handle things