diff options
author | Tobias Grosser <grosser@fim.uni-passau.de> | 2011-02-05 17:53:48 +0000 |
---|---|---|
committer | Tobias Grosser <grosser@fim.uni-passau.de> | 2011-02-05 17:53:48 +0000 |
commit | ff090ca42aa319e1bbdde38b3940219ea11e07b3 (patch) | |
tree | e5a6fcd8bf379f7065ca9156665675d3ae4eb4f4 /lib/Frontend/ASTUnit.cpp | |
parent | 4ed73ce03bbdc56692f3bc232cb64632dc9dbc0f (diff) |
python bindings: Use python Diagnostics as function arguments
This improves the readability of the code and fixes one testsuite bug.
The bug happend, because we only stored the pointer to the diagnostic in the
FixIt iterator, but not the python Diagnostic object. So it could happen that
the FixIt iterator still exists, but the python Diagnostic object is freed.
However, as the python Diagnostic is freed the pointer to the diagnostic is also
freed and the FixIt iterator is referencing a freed pointer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124952 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/ASTUnit.cpp')
0 files changed, 0 insertions, 0 deletions