This is an archive of the discontinued LLVM Phabricator instance.

[OpenCL] Correct NULL constant handling after applying default AS
ClosedPublic

Authored by Anastasia on Dec 7 2015, 9:09 AM.

Details

Summary

In OpenCL2.0 s6.5 all pointers are implicitly in generic address space unless address space is explicitly specified.

Correct the behavior of NULL constant detection - generic AS void pointer should be accepted as a valid NULL constant.

Diff Detail

Event Timeline

Anastasia updated this revision to Diff 42076.Dec 7 2015, 9:09 AM
Anastasia retitled this revision from to [OpenCL] Correct NULL constant handling after applying default AS.
Anastasia updated this object.
Anastasia added a reviewer: pekka.jaaskelainen.
Anastasia added a subscriber: cfe-commits.
pekka.jaaskelainen edited edge metadata.
This revision is now accepted and ready to land.Dec 11 2015, 12:03 AM