On Thu, Jun 25, 2009 at 5:50 PM, Nate Begeman<[email protected]> wrote: > + // If SrcTy is also an ExtVectorType, the types must be identical unless > + // lax vector conversions is enabled. > + if (SrcTy->isExtVectorType()) { > + if (getLangOptions().LaxVectorConversions && > + Context.getTypeSize(DestTy) == Context.getTypeSize(SrcTy)) > + return false; > + if (DestTy != SrcTy) > + return > Diag(R.getBegin(),diag::err_invalid_conversion_between_ext_vectors) > + << DestTy << SrcTy << R; > + return false; > + }
LaxVectorConversions is supposed to control implicit conversions. I see no reason to disallow explicit conversions. -Eli _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
