Skip to content

Commit b53179a

Browse files
committed
Apply suggestion.
1 parent 8ade6ad commit b53179a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

clang/lib/Headers/__clang_hip_math.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,7 @@
3535

3636
#pragma push_macro("__PRIVATE_AS")
3737

38-
#ifdef __SPIRV__
39-
#define __PRIVATE_AS __attribute__((address_space(0)))
40-
#else
41-
#define __PRIVATE_AS __attribute__((address_space(5)))
42-
#endif
38+
#define __PRIVATE_AS __attribute__((opencl_private))
4339
// Device library provides fast low precision and slow full-recision
4440
// implementations for some functions. Which one gets selected depends on
4541
// __CLANG_GPU_APPROX_TRANSCENDENTALS__ which gets defined by clang if

0 commit comments

Comments
 (0)