This is an archive of the discontinued LLVM Phabricator instance.

[CUDA] Make std::min/max work when compiling in C++14 mode with a C++11 stdlib.
ClosedPublic

Authored by jlebar on May 16 2018, 6:23 PM.

Diff Detail

Repository
rC Clang

Event Timeline

jlebar created this revision.May 16 2018, 6:23 PM
rsmith accepted this revision.May 16 2018, 6:27 PM

LGTM, thanks!

This revision is now accepted and ready to land.May 16 2018, 6:27 PM

Thank you for the review!

This revision was automatically updated to reflect the committed changes.
lahwaacz added a subscriber: lahwaacz.EditedJun 8 2018, 1:21 PM

This revision does not do the right thing because it makes it impossible to use the std::min and std::max functions in __host__ __device__ functions under C++14: https://bugs.llvm.org/show_bug.cgi?id=37753