[cfe-dev] [PATCH] TypeOfExpr serialization

Zhongxing Xu xuzhongxing at gmail.com
Wed Dec 24 01:16:39 PST 2008


On Wed, Dec 24, 2008 at 2:11 PM, Ted Kremenek <kremenek at apple.com> wrote:

> This looks right to me!
>
> On a separate issue, I'm mixed on having TypeOfExpr own the Expr (which I
> assume is the case right now).  VLA types also own their size expressions,
> but I've never felt that Types should own expressions.  This is a
> long-standing issue, however with the ASTs.


Yeah. Having types own decls causes failure of serialization/deserialization
on this code:

struct s {
};

The struct is serialized twice: once by translation unit, the other by the
type which owns it. When deserialized the second time, RegisterPtr() fails
due to that the backpatch map already has final pointer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20081224/3331d45a/attachment.html>


More information about the cfe-dev mailing list