[cfe-dev] Type>>isObjCInterfaceType() blows up

Sam Bishop sam at bishop.dhs.org
Wed Apr 23 08:17:40 PDT 2008


Ted Kremenek wrote:
> One aside: if TranslationUnit always owns ASTContext, then it doesn't
> have to be explicitly allocated in TranslationUnit, just kept as a
> field.  TranslationUnit can in turn be stack or heap allocated.

I see where I was confused now.  I was under the impression that
deserialized non-POD types had to be heap allocated.  And indeed, the
heap versus stack problem I mentioned earlier would go away if
ASTContext objects were always created (however that may be) as a
TranslationUnit member.

Sorry about the noise!

Sam




More information about the cfe-dev mailing list