Skip to content

Commit a531a18

Browse files
committed
Add back base ctors to avoid llvm-spirv issues
Signed-off-by: Larsen, Steffen <[email protected]>
1 parent 10d207e commit a531a18

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sycl/include/sycl/ext/oneapi/device_global/device_global.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,14 @@ class device_global_base {
101101
constexpr device_global_base(
102102
const device_global_base<OtherT, OtherProps> &DGB)
103103
: init_val{ExtractInitialVal(DGB)} {}
104+
constexpr device_global_base(const device_global_base &DGB)
105+
: init_val{DGB.init_val} {}
104106
#else
105107
template <typename OtherT, typename OtherProps,
106108
typename = std::enable_if_t<std::is_convertible_v<OtherT, T>>>
107109
constexpr device_global_base(const device_global_base<OtherT, OtherProps> &) {
108110
}
111+
constexpr device_global_base(const device_global_base &) {}
109112
#endif // __SYCL_DEVICE_ONLY__
110113

111114
template <access::decorated IsDecorated>

0 commit comments

Comments
 (0)