[cfe-commits] r72186 - in /cfe/trunk: include/clang/Parse/Ownership.h lib/Sema/Sema.h lib/Sema/SemaTemplateInstantiateExpr.cpp lib/Sema/SemaTemplateInstantiateStmt.cpp test/SemaTemplate/instantiate-function-1.cpp

Douglas Gregor dgregor at apple.com
Thu May 21 10:13:40 PDT 2009


On May 21, 2009, at 3:13 AM, Sebastian Redl wrote:

> Douglas Gregor wrote:
>> Author: dgregor
>> Date: Wed May 20 17:33:37 2009
>> New Revision: 72186
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=72186&view=rev
>> Log:
>> Introduce a new kind of RAII class, ASTOwningVector, which is an
>> llvm::SmallVector that owns all of the AST nodes inside of it. This
>> RAII class is used to ensure proper destruction of AST nodes when
>> template instantiation fails.
>>
> Sounds very similar to ASTVector in lib/Parse/AstGuard.h. We should
> probably only keep one of them.

I missed that. Thanks!

	- Doug



More information about the cfe-commits mailing list