From aced322c3c09c16f4f29071d18c2bc83bc0c12a5 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Tue, 16 Feb 2010 01:54:33 +0000 Subject: [PATCH] Switch clang to use its own LLVMContext (not the global one). llvm-svn: 96313 --- clang/tools/driver/cc1_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/tools/driver/cc1_main.cpp b/clang/tools/driver/cc1_main.cpp index 345132ee7d38..30d2a21c93ab 100644 --- a/clang/tools/driver/cc1_main.cpp +++ b/clang/tools/driver/cc1_main.cpp @@ -195,7 +195,7 @@ static int cc1_test(Diagnostic &Diags, int cc1_main(const char **ArgBegin, const char **ArgEnd, const char *Argv0, void *MainAddr) { - CompilerInstance Clang(&llvm::getGlobalContext(), false); + CompilerInstance Clang(new llvm::LLVMContext, true); // Run clang -cc1 test. if (ArgBegin != ArgEnd && llvm::StringRef(ArgBegin[0]) == "-cc1test") {