This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Work around C1XX bug which breaks poisoned hash tests.
ClosedPublic

Authored by EricWF on Mar 22 2017, 2:01 PM.

Diff Detail

Event Timeline

EricWF created this revision.Mar 22 2017, 2:01 PM
BillyONeal accepted this revision.Mar 22 2017, 3:42 PM

I mean, looks good to me, but you really don't need to go there :). (Though you might want something like this anyway if you try libc++ with MSVC++ on Windows...)

This revision is now accepted and ready to land.Mar 22 2017, 3:42 PM

(Though you might want something like this anyway if you try libc++ with MSVC++ on Windows...)

Exactly why I volunteered to do this. As libc++ and MSVC implement C++17 at different rates I suspect we'll need temporary workarounds like this more often.

EricWF closed this revision.Mar 22 2017, 3:53 PM
CaseyCarter edited edge metadata.Mar 22 2017, 4:00 PM

I also have no problem with this change.

test/support/poisoned_hash_helper.hpp
53

I would merge these conditionals since they have identical extent. YMMV ;)

test/support/test.workarounds/c1xx_broken_nullptr_conversion_operator.pass.cpp
16

IIRC, including "" headers before <> headers is not conventional for the test suite.