Skip to content

Commit 127a2c4

Browse files
committed
Fix build
1 parent 32be3d2 commit 127a2c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/source/detail/context_impl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ context_impl::~context_impl() {
120120
try {
121121
// Free all events associated with the initialization of device globals.
122122
for (auto &DeviceGlobalInitializer : MDeviceGlobalInitializers)
123-
DeviceGlobalInitializer.second.ClearEvents(&getAdapter());
123+
DeviceGlobalInitializer.second.ClearEvents(getAdapter());
124124
// Free all device_global USM allocations associated with this context.
125125
for (const void *DeviceGlobal : MAssociatedDeviceGlobals) {
126126
DeviceGlobalMapEntry *DGEntry =
@@ -146,7 +146,7 @@ const async_handler &context_impl::get_async_handler() const {
146146
template <>
147147
uint32_t context_impl::get_info<info::context::reference_count>() const {
148148
return get_context_info<info::context::reference_count>(this->getHandleRef(),
149-
&this->getAdapter());
149+
this->getAdapter());
150150
}
151151
template <> platform context_impl::get_info<info::context::platform>() const {
152152
return createSyclObjFromImpl<platform>(*MPlatform);

0 commit comments

Comments
 (0)