[c10] Fix typo in __assert_fail noreturn modifier guard (#34157)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/34157

`[[noreturn]` only conficts with CUDA __asert_fail defition if clang is used if host compiler

Test Plan: CI

Reviewed By: EscapeZero

Differential Revision: D20232088

fbshipit-source-id: 7182c28a15278e03175865cd0c87410c5de5bf2c
This commit is contained in:
Nikita Shulga 2020-03-03 17:04:59 -08:00 committed by Facebook Github Bot
parent 99e211e661
commit 4edff32f81

View File

@ -218,7 +218,7 @@ constexpr uint32_t CUDA_THREADS_PER_BLOCK_FALLBACK = 256;
#else // __APPLE__, _MSC_VER
#if defined(NDEBUG)
extern "C" {
#if defined(__CUDA_ARCH__) || !defined(__clang__)
#if !defined(__CUDA_ARCH__) || !defined(__clang__)
[[noreturn]]
#endif
#if defined(__CUDA_ARCH__) || defined(__HIP_ARCH__) || defined(__HIP__)