summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
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
commit445a603c78c10b372c20335bcbf803c010a05f29 (patch)
tree0e99facc07cda873468ce78adf4c6ca4605326d8 /clang/lib/CodeGen/CodeGenModule.cpp
parent70127c1dcf66d1d01fd8423c1dc858e9baba714b (diff)
downloadbcm5719-llvm-445a603c78c10b372c20335bcbf803c010a05f29.tar.gz
bcm5719-llvm-445a603c78c10b372c20335bcbf803c010a05f29.zip
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. llvm-svn: 96642
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud