This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] Portability fix: make return value of array<T, 0>.data() checked only for libc++.
ClosedPublic

Authored by amakc11 on Dec 6 2018, 5:01 AM.

Details

Reviewers
EricWF
ldionne
Summary

The section array.zero says: "The return value of data() is unspecified". This patch marks all checks of the array<T, 0>.data() return value as libc++ specific.

Diff Detail

Repository
rCXX libc++

Event Timeline

amakc11 created this revision.Dec 6 2018, 5:01 AM
amakc11 edited the summary of this revision. (Show Details)Dec 6 2018, 5:03 AM
ldionne accepted this revision.Dec 6 2018, 5:41 AM
This revision is now accepted and ready to land.Dec 6 2018, 5:41 AM
ldionne closed this revision.Dec 6 2018, 5:57 AM

Committed as r348485.