Switch clang to use its own LLVMContext (not the global one).

llvm-svn: 96313
This commit is contained in:
Daniel Dunbar 2010-02-16 01:54:33 +00:00
parent af25cf825c
commit aced322c3c
1 changed files with 1 additions and 1 deletions

View File

@ -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") {