diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-02-16 01:54:33 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-02-16 01:54:33 +0000 |
commit | f25491dd27f188afe083dbbdf028c87a2daba359 (patch) | |
tree | fbe3ad52d88655c1167edaf8c9ca1ddbb6561ced | |
parent | 0395618b6f3a57137abf6d29284e0eef6177c0ad (diff) |
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
-rw-r--r-- | tools/driver/cc1_main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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") { |