summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ScalarEvolution.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2014-05-09 22:33:11 +0000
committerNico Weber <nicolasweber@gmx.de>2014-05-09 22:33:11 +0000
commit7dd96c23fd72e2be779857760c66788db0b51df8 (patch)
tree06fa668c52f95cb1807ca07afa173fc796dbb0c6 /llvm/lib/Analysis/ScalarEvolution.cpp
parent79418564458d28f8bbfa5259c2e541436bd866c6 (diff)
downloadbcm5719-llvm-7dd96c23fd72e2be779857760c66788db0b51df8.tar.gz
bcm5719-llvm-7dd96c23fd72e2be779857760c66788db0b51df8.zip
Don't leak the CXStoredDiagnostics returned by clang_codeCompleteGetDiagnostic()
r144269 changed clang_disposeDiagnostic() to be a no-op, but didn't update code completion diagnostics. Let CXCodeCompleteResults store all diagnostics returned by clang_codeCompleteGetDiagnostic() and then free them up in clang_disposeCodeCompleteResults(). Code completion diagnostics referred to data stored in CXCodeCompleteResults before already, so it wasn't possible to refer to the results of clang_codeCompleteGetDiagnostic() after clang_disposeCodeCompleteResults() before this change already -- hence this should be a safe, backwards-compatible change. Leak found by LSan, fixes PR19690. llvm-svn: 208454
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolution.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud