[cfe-commits] [Request for review] cast<ComplexType> is called on sugared types
John McCall
rjmccall at apple.com
Mon Dec 27 21:33:56 PST 2010
On Dec 26, 2010, at 3:59 AM, Abramo Bagnara wrote:
> The problem is originated from PrepareScalarCast where we have some
> lines like this:
>
> S.ImpCastExprToType(Src, cast<ComplexType>(DestTy)->getElementType(),
> CK_IntegralCast);
>
> DestTy is not canonical and then the cast fails with a violated assertion.
Patch looks okay to me, thanks!
John.
More information about the cfe-commits
mailing list