On Mon, Feb 16, 2009 at 1:11 PM, Chris Lattner <[email protected]> wrote:
> +  // ExtVectorElementExpr's base can either be a vector or pointer to vector.
> +  if (const PointerType *PT = E->getBase()->getType()->getAsPointerType()) {

Ugly; ExtVectorElementExpr should have an isArrow() property.

> +    llvm::Value *Ptr = EmitScalarExpr(E->getBase());
> +    Base = LValue::MakeAddr(Ptr, PT->getPointeeType().getCVRQualifiers());

Do we distinguish between a volatile vector and a vector with volatile
elements?  In any case, it's not very clean to be using
getCVRQualifiers on a non-canonical type.

-Eli
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to