[cfe-dev] Ownership of Stmts and Exprs, and destroying them

Sebastian Redl sebastian.redl at getdesigned.at
Mon Nov 24 23:40:58 PST 2008


On Mon, 24 Nov 2008 14:24:57 -0800, Chris Lattner <clattner at apple.com>
wrote:
> On Nov 24, 2008, at 2:10 PM, Sebastian Redl wrote:
> 
>> Chris Lattner wrote:
>>> In practice, the size of a small vector is pretty arbitrary.  Would  
>>> it be fine to just fix it to 16 or something like that?
>> I'm sure you have more experience there than me.
> 
> Ok, I guess I'm asking if there are cases in the parser that will use  
> this class, that aren't currently using a size of ~16.  Have you seen  
> any cases like that?

Yes. There are three or four instances of the size 4 (e.g. parsing extended
ASM decls), and one or two of the size 8 (can't remember where).

Sebastian



More information about the cfe-dev mailing list