From: Daniel Dunbar Date: Tue, 16 Feb 2010 01:54:33 +0000 (+0000) Subject: Switch clang to use its own LLVMContext (not the global one). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f25491dd27f188afe083dbbdf028c87a2daba359;p=clang Switch clang to use its own LLVMContext (not the global one). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96313 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/driver/cc1_main.cpp b/tools/driver/cc1_main.cpp index 345132ee7d..30d2a21c93 100644 --- a/tools/driver/cc1_main.cpp +++ b/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") {