mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-10 11:23:52 +00:00
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…
x
Reference in New Issue
Block a user