summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/Module.cpp
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-11-30 23:18:53 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-11-30 23:18:53 +0000
commit60e2c6aa433e6cbb3eb13377c9e8904209416267 (patch)
treeba92799d76c9a3e52826d082642f860b423a7c62 /clang/lib/Serialization/Module.cpp
parentb9e53ed4e2f767ec86822e6923d2fc2bc1ea709a (diff)
downloadbcm5719-llvm-60e2c6aa433e6cbb3eb13377c9e8904209416267.tar.gz
bcm5719-llvm-60e2c6aa433e6cbb3eb13377c9e8904209416267.zip
rdar://problem/10501020
ClangASTSource::~ClangASTSource() was calling ClangASTContext *scratch_clang_ast_context = m_target->GetScratchClangASTContext(); which had the side effect of deleting this very ClangASTSource instance. Not good. Change it to // We are in the process of destruction, don't create clang ast context on demand // by passing false to Target::GetScratchClangASTContext(create_on_demand). ClangASTContext *scratch_clang_ast_context = m_target->GetScratchClangASTContext(false); The Target::GetScratchClangASTContext(bool create_on_demand=true) has a new signature. llvm-svn: 145537
Diffstat (limited to 'clang/lib/Serialization/Module.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud