summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/unittests/CodeGen/BufferSourceTest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/unittests/CodeGen/BufferSourceTest.cpp b/clang/unittests/CodeGen/BufferSourceTest.cpp
index 85df768aa1b..56aafcee351 100644
--- a/clang/unittests/CodeGen/BufferSourceTest.cpp
+++ b/clang/unittests/CodeGen/BufferSourceTest.cpp
@@ -40,6 +40,7 @@ const char TestProgram[] =
TEST(BufferSourceTest, EmitCXXGlobalInitFunc) {
CompilerInstance compiler;
+ LLVMContext Context;
compiler.createDiagnostics();
compiler.getLangOpts().CPlusPlus = 1;
@@ -65,7 +66,7 @@ TEST(BufferSourceTest, EmitCXXGlobalInitFunc) {
compiler.getHeaderSearchOpts(),
compiler.getPreprocessorOpts(),
compiler.getCodeGenOpts(),
- llvm::getGlobalContext())));
+ Context)));
compiler.createSema(clang::TU_Prefix, nullptr);
OpenPOWER on IntegriCloud