From 320bfd429bd41ded52e2aa6cd49431f4eea76276 Mon Sep 17 00:00:00 2001
From: foreman
Date: Thu, 13 Sep 2018 12:03:30 -0400
Subject: [PATCH] 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: 55cf1727b2b47b4948d186dfa31e1bee6f4031dc]
---
projects/clr/rocclr/runtime/device/pal/palprogram.hpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/projects/clr/rocclr/runtime/device/pal/palprogram.hpp b/projects/clr/rocclr/runtime/device/pal/palprogram.hpp
index dc1db1d3b8..a6e718c807 100644
--- a/projects/clr/rocclr/runtime/device/pal/palprogram.hpp
+++ b/projects/clr/rocclr/runtime/device/pal/palprogram.hpp
@@ -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