P4 to Git Change 1605385 by gandryey@gera-w8 on 2018/09/13 11:53:28

SWDEV-79445 - OCL generic changes and code clean-up
	- Don't call backing store destruction if segment wasn't created at all. It could occur during library link.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.hpp#26 edit


[ROCm/clr commit: 55cf1727b2]
Этот коммит содержится в:
foreman
2018-09-13 12:03:30 -04:00
родитель d220b29d2a
Коммит 320bfd429b
+1 -1
Просмотреть файл
@@ -224,7 +224,7 @@ class HSAILProgram : public device::Program {
//! Destroys CPU allocations in the code segment
void DestroySegmentCpuAccess() const
{ if (!isNull()) { codeSegment_->DestroyCpuAccess(); } }
{ if (codeSegment_ != nullptr) { codeSegment_->DestroyCpuAccess(); } }
private:
//! Disable default copy constructor