folly: changes to make nvcc happy
authorYangqing Jia <jiayq@fb.com>
Wed, 26 Jul 2017 06:45:53 +0000 (23:45 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 26 Jul 2017 06:55:49 +0000 (23:55 -0700)
commit5a40209ae92c09d6c13875e5ce162cab5456c540
tree8160d3b24589be3771977f6b821b8d62529357ec
parentf634a70117bf1fa4627c93864df104821fbfabae
folly: changes to make nvcc happy

Summary:
(1) small_vector.h line 1099: wrap the default return in an else statement to
avoid compiler warning of "unreachable statement".
(2) Constexpr.h: need to treat cudacc similarly to msvc.

(Note: this ignores all push blocking failures!)

Reviewed By: dzhulgakov

Differential Revision: D5387061

fbshipit-source-id: f002ab5ec00d4dcd85d86386f87a0327023afa1b
folly/portability/Constexpr.h
folly/small_vector.h