Fix crash in delete of TempWrapper

OCLTST crashing at oclruntime.OCLKernelBinary for
Tahiti because of deleting on pointer vector which
is however a single pointer. The fix will correct
the wrong deleting in TempWrapper destructor.

Change-Id: Ic5a1387a426c102b085a4ef8ff8ff05e6a870cba


[ROCm/clr commit: 6a6faf1d58]
This commit is contained in:
Tao Sang authored and Tao Sang committed 2020-10-26 16:04:39 -04:00
1 parent 50138a93a3
commit 33d212d09a
1 file changed
+1 -1
+1 -1
View File
@@ -96,7 +96,7 @@ bool ClBinary::loadKernels(NullProgram& program, bool* hasRecompiled) {
~TempWrapper() {
for (const auto& it : functionNameMap) {
delete[] it.second;
delete it.second;
}
kernelILs.clear();