summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorJonathan Coe <jbcoe@me.com>2016-03-10 23:29:45 +0000
committerJonathan Coe <jbcoe@me.com>2016-03-10 23:29:45 +0000
commit02281b84198e06eda2f71b230a30b0b9dc5f5cca (patch)
treecbd58620ee8faa39ef36f06ba2d943e68e4670ad /clang
parent6092de50750e85b6866950884512ba281d431391 (diff)
downloadbcm5719-llvm-02281b84198e06eda2f71b230a30b0b9dc5f5cca.tar.gz
bcm5719-llvm-02281b84198e06eda2f71b230a30b0b9dc5f5cca.zip
libclang python bindings: Fix for bug 26394
Summary: https://llvm.org/bugs/show_bug.cgi?id=26394 reports that clang's python bindings tests are failing. I can confirm that the bug exists and that the proposed fix is good. Differential Revision: http://reviews.llvm.org/D17226 llvm-svn: 263170
Diffstat (limited to 'clang')
-rw-r--r--clang/bindings/python/clang/cindex.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/bindings/python/clang/cindex.py b/clang/bindings/python/clang/cindex.py
index f4c7ca4986f..4d450eca180 100644
--- a/clang/bindings/python/clang/cindex.py
+++ b/clang/bindings/python/clang/cindex.py
@@ -2383,7 +2383,7 @@ class TranslationUnit(ClangObject):
functions above. __init__ is only called internally.
"""
assert isinstance(index, Index)
-
+ self.index = index
ClangObject.__init__(self, ptr)
def __del__(self):
OpenPOWER on IntegriCloud