diff options
author | Mehdi Amini <mehdi.amini@apple.com> | 2016-04-14 05:37:41 +0000 |
---|---|---|
committer | Mehdi Amini <mehdi.amini@apple.com> | 2016-04-14 05:37:41 +0000 |
commit | 3d7224c2a7f9a5e78e3c2a7a890547791d6ef8e2 (patch) | |
tree | 107439c9bb0f7a6e1b7200388ef35aaa56919934 /clang/unittests/CodeGen/BufferSourceTest.cpp | |
parent | 59fb3ac51bfea3fb5c81c13c8d202c56307296bb (diff) | |
download | bcm5719-llvm-3d7224c2a7f9a5e78e3c2a7a890547791d6ef8e2.tar.gz bcm5719-llvm-3d7224c2a7f9a5e78e3c2a7a890547791d6ef8e2.zip |
Make sure the LLVMContext outlive the CompilerInstance
From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 266277
Diffstat (limited to 'clang/unittests/CodeGen/BufferSourceTest.cpp')
-rw-r--r-- | clang/unittests/CodeGen/BufferSourceTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |