summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-split/llvm-split.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/llvm-split/llvm-split.cpp')
-rw-r--r--llvm/tools/llvm-split/llvm-split.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-split/llvm-split.cpp b/llvm/tools/llvm-split/llvm-split.cpp
index 010b1eb7320..024363547f9 100644
--- a/llvm/tools/llvm-split/llvm-split.cpp
+++ b/llvm/tools/llvm-split/llvm-split.cpp
@@ -41,7 +41,7 @@ static cl::opt<bool>
cl::desc("Split without externalizing locals"));
int main(int argc, char **argv) {
- LLVMContext &Context = getGlobalContext();
+ LLVMContext Context;
SMDiagnostic Err;
cl::ParseCommandLineOptions(argc, argv, "LLVM module splitter\n");
OpenPOWER on IntegriCloud