aboutsummaryrefslogtreecommitdiff
path: root/test/ASTMerge/Inputs/exprs1.c
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-02-19 00:42:33 +0000
committerTed Kremenek <kremenek@apple.com>2010-02-19 00:42:33 +0000
commit9f9269e810bfe9aea0a57b09250be215808fc1a2 (patch)
treed7cb45bf9e3387ffdacb0a1106cd2ceca04cf454 /test/ASTMerge/Inputs/exprs1.c
parentb9c903bc7c11adf86b1f1e68ad35cd49703dc654 (diff)
Change InitListExpr to allocate the array for holding references
to initializer expressions in an array allocated using ASTContext. This plugs a memory leak when ASTContext uses a BumpPtrAllocator to allocate memory for AST nodes. In my mind this isn't an ideal solution; it would be nice to have a general "vector"-like class that allocates memory using ASTContext, but whose guts could be separated from the methods of InitListExpr itself. I haven't gone and taken this approach yet because it isn't clear yet if we'll eventually want an alternate solution for recylcing memory using by InitListExprs as we are constructing the ASTs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96642 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ASTMerge/Inputs/exprs1.c')
0 files changed, 0 insertions, 0 deletions