aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util/system/compiler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/system/compiler.h b/util/system/compiler.h
index 2b4b05fc5f..a076c0308c 100644
--- a/util/system/compiler.h
+++ b/util/system/compiler.h
@@ -666,7 +666,7 @@ Y_FORCE_INLINE void DoNotOptimizeAway(const T&) = delete;
* an object or reference refers to another object with a shorter lifetime.
*/
#if defined(__clang__) && defined(__cplusplus) && defined(__has_cpp_attribute)
- #if defined(__CUDACC__) && !Y_CUDA_AT_LEAST(11, 0)
+ #if defined(__CUDACC__) && (!Y_CUDA_AT_LEAST(11, 0) || (__clang_major__ < 13))
#define Y_LIFETIME_BOUND
#elif __has_cpp_attribute(clang::lifetimebound)
#define Y_LIFETIME_BOUND [[clang::lifetimebound]]