[cfe-commits] [PATCH] VisitInitListExpr

Zhongxing Xu xuzhongxing at gmail.com
Wed Oct 29 21:00:48 PDT 2008


>
>
>
> +
> +void CompoundSValData::Profile(llvm::FoldingSetNodeID& ID, QualType T,
> +                               unsigned N, const SVal* Vals) {
> +  T.Profile(ID);
> +  ID.AddInteger(N);
> +  for (unsigned i = 0; i < N; ++i)
> +    Vals[i].Profile(ID);
> +}
>
> You need the QualType in the profile as well, otherwise you might get a
> collision.
>
>
I did. It's in the first line T.Profile(ID).

All others are good suggestions. Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20081030/17a8f6cf/attachment.html>


More information about the cfe-commits mailing list