diff options
author | Enrico Granata <egranata@apple.com> | 2014-02-05 03:19:01 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2014-02-05 03:19:01 +0000 |
commit | 95a9df2c820095fde23d0947bf5669762726053c (patch) | |
tree | 1645b68beeb01fdf50bf9140430e62cacebccac9 /clang/lib/AST/Expr.cpp | |
parent | 39a509aa7076f491b3ad39b742068d1b9fa0098d (diff) | |
download | bcm5719-llvm-95a9df2c820095fde23d0947bf5669762726053c.tar.gz bcm5719-llvm-95a9df2c820095fde23d0947bf5669762726053c.zip |
<rdar://problem/15936507>
ScriptInterpreterPython caches the lldb.embedded_interpreter module, and since it caches it in a refcounting-safe PythonObject, the refcount will appropriately go down 1 every time a ScriptInterpreterPython is deallocated
However, we were only importing the module once - in InitializePrivate(). In a handful of interpreter creations, the refcount on the run_one_line function would end up at 0, causing LLDB to crash
This fixes it by also importing the module for every interpreter, which ensures correct refcounting
llvm-svn: 200816
Diffstat (limited to 'clang/lib/AST/Expr.cpp')
0 files changed, 0 insertions, 0 deletions