[CUDA] Make min/max shims host+device.
authorJustin Lebar <jlebar@google.com>
Fri, 29 Jun 2018 22:27:56 +0000 (22:27 +0000)
committerJustin Lebar <jlebar@google.com>
Fri, 29 Jun 2018 22:27:56 +0000 (22:27 +0000)
commit5cb41c2acf83c6bbdffac928d40939c08c7f5aad
tree242e9fedb9cdfb7dbab57abf80c7aa65c6592ee8
parent68e1919d1481300c150da4b614aebe0606316094
[CUDA] Make min/max shims host+device.

Summary:
Fixes PR37753: min/max can't be called from __host__ __device__
functions in C++14 mode.

Testcase in a separate test-suite commit.

Reviewers: rsmith

Subscribers: sanjoy, lahwaacz, cfe-commits

Differential Revision: https://reviews.llvm.org/D48036

llvm-svn: 336025
clang/lib/Headers/cuda_wrappers/algorithm