From 3d7224c2a7f9a5e78e3c2a7a890547791d6ef8e2 Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Thu, 14 Apr 2016 05:37:41 +0000 Subject: Make sure the LLVMContext outlive the CompilerInstance From: Mehdi Amini llvm-svn: 266277 --- clang/unittests/CodeGen/BufferSourceTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/unittests/CodeGen/BufferSourceTest.cpp') diff --git a/clang/unittests/CodeGen/BufferSourceTest.cpp b/clang/unittests/CodeGen/BufferSourceTest.cpp index 56aafcee351..1934e661383 100644 --- a/clang/unittests/CodeGen/BufferSourceTest.cpp +++ b/clang/unittests/CodeGen/BufferSourceTest.cpp @@ -39,8 +39,8 @@ const char TestProgram[] = "EmitCXXGlobalInitFunc test; "; TEST(BufferSourceTest, EmitCXXGlobalInitFunc) { - CompilerInstance compiler; LLVMContext Context; + CompilerInstance compiler; compiler.createDiagnostics(); compiler.getLangOpts().CPlusPlus = 1; -- cgit v1.2.3