aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/DeclSpec.cpp
diff options
context:
space:
mode:
authorAlex Zinenko <zinenko@google.com>2021-03-11 11:27:00 +0100
committerAlex Zinenko <zinenko@google.com>2021-03-12 09:24:08 +0100
commitbe5b844a354240007de05b67f6be7b48e1bbb25c (patch)
tree6cc25a8ab4ef8109be34863e4c49bd6e284e01d6 /clang/lib/Sema/DeclSpec.cpp
parent529c8e8dc6e9826b298b5e8586d55940abfee0ba (diff)
downloadllvm-be5b844a354240007de05b67f6be7b48e1bbb25c.zip
llvm-be5b844a354240007de05b67f6be7b48e1bbb25c.tar.gz
llvm-be5b844a354240007de05b67f6be7b48e1bbb25c.tar.bz2
[mlir] fix memory leak on failure path in parser
Forward references to blocks lead to `Block`s being allocated in the parser, but they are not necessarily included into a region if parsing fails, leading to a leak. Clean them up in parser destructor. Reviewed By: rriddle, mehdi_amini Differential Revision: https://reviews.llvm.org/D98403
Diffstat (limited to 'clang/lib/Sema/DeclSpec.cpp')
0 files changed, 0 insertions, 0 deletions