aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Format/FormatTestJava.cpp
diff options
context:
space:
mode:
authorFrederic Riss <friss@apple.com>2014-11-19 18:53:46 +0000
committerFrederic Riss <friss@apple.com>2014-11-19 18:53:46 +0000
commitdce60a747cb7ecad9a6b34e6f6be71cf73c055ec (patch)
tree60837f623815b56f91d20aab7715cc087e5fa8c6 /clang/unittests/Format/FormatTestJava.cpp
parent5d06474b293c8a15d6e7cad60a9d55df83b19ab5 (diff)
downloadllvm-dce60a747cb7ecad9a6b34e6f6be71cf73c055ec.zip
llvm-dce60a747cb7ecad9a6b34e6f6be71cf73c055ec.tar.gz
llvm-dce60a747cb7ecad9a6b34e6f6be71cf73c055ec.tar.bz2
Fix a temporary MDNode leak.
While emitting debug information for function forward decalrations, we create DISubprogram objects that aran't stored in the AllSubprograms list, and thus won't get finalized by the DIBuilder. During the DIBuilder finalize(), the temporary MDNode allocated for the DISubprogram Variables field gets RAUWd with a non temporary DIArray. For the forward declarations, simply delete that temporary node before we delete the parent node, so that it doesn't leak. llvm-svn: 222373
Diffstat (limited to 'clang/unittests/Format/FormatTestJava.cpp')
0 files changed, 0 insertions, 0 deletions