On Jan 23, 2009, at 1:45 AM, Mon Ping Wang wrote: > Hi Chris, > > I'm trying not to agree with your interpretation but I think you are > right :->. CodeGen should not insert any implicit cast that changes > address spaces, i.e., in LLVM IR, the type generated for p1->arr > should have an address space.
Hi Mon Ping, I think the simple fix is to just throw an address space # into the union in LValue, and make LValue::MakeAddr set it. From there, everything that twiddles lvalues should propagate it. -Chris _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
