[cfe-commits] patch: preserve address space
Chris Lattner
clattner at apple.com
Fri Jan 23 08:21:15 PST 2009
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
More information about the cfe-commits
mailing list