@@ -56,8 +56,8 @@ class SYCLMemObjT : public SYCLMemObjI {
5656 SYCLMemObjT (const size_t SizeInBytes, const property_list &Props,
5757 std::unique_ptr<SYCLMemObjAllocator> Allocator)
5858 : MAllocator(std::move(Allocator)), MProps(Props), MInteropEvent(nullptr ),
59- MInteropContext (nullptr ), MInteropMemObject( nullptr ),
60- MOpenCLInterop( false ), MHostPtrReadOnly(false ), MNeedWriteBack(true ),
59+ MInteropContext (nullptr ), MOpenCLInterop( false ),
60+ MHostPtrReadOnly(false ), MNeedWriteBack(true ),
6161 MSizeInBytes(SizeInBytes), MUserPtr(nullptr ), MShadowCopy(nullptr ),
6262 MUploadDataFunctor(nullptr ), MSharedPtrStorage(nullptr ),
6363 MHostPtrProvided(false ) {}
@@ -342,7 +342,7 @@ class SYCLMemObjT : public SYCLMemObjI {
342342 std::shared_ptr<context_impl> MInteropContext;
343343 // Native backend memory object handle passed by user to interoperability
344344 // constructor.
345- ur_mem_handle_t MInteropMemObject;
345+ ur_mem_handle_t MInteropMemObject = nullptr ;
346346 // Indicates whether memory object is created using interoperability
347347 // constructor or not.
348348 bool MOpenCLInterop;
0 commit comments