This is an archive of the discontinued LLVM Phabricator instance.

Bug 18567: Fix constantexpr pointer casts with address spaces.
ClosedPublic

Authored by arsenm on Jan 23 2014, 10:42 AM.

Details

Reviewers
arsenm
Summary

Getting a pointer into a struct at a non-zero offset would try to use the default address space.

Diff Detail

Event Timeline

Seems OK (to my Clang novice eyes). Can this be backported to LLVM 3.4.1 also?

A number of related bugs were fixed in r197036; see also D2241 (I doubt the test cases from there were ever committed). I've added two more related test cases to PR18567.

arsenm accepted this revision.Apr 17 2014, 10:53 AM

Committed r206478. The other testcases aren't related, and I have a separate patch somewhere that addresses those.

arsenm closed this revision.Apr 17 2014, 10:53 AM