forked from OSchip/llvm-project
Make sure the LLVMContext outlive the CompilerInstance
From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 266277
This commit is contained in:
parent
59fb3ac51b
commit
3d7224c2a7
|
@ -39,8 +39,8 @@ const char TestProgram[] =
|
|||
"EmitCXXGlobalInitFunc test; ";
|
||||
|
||||
TEST(BufferSourceTest, EmitCXXGlobalInitFunc) {
|
||||
CompilerInstance compiler;
|
||||
LLVMContext Context;
|
||||
CompilerInstance compiler;
|
||||
|
||||
compiler.createDiagnostics();
|
||||
compiler.getLangOpts().CPlusPlus = 1;
|
||||
|
|
Loading…
Reference in New Issue