Commit 4074fd7
Don't use pKernelModule after potential delete.
pKernelModule holds a pointer to llvm::Module. This pointer is passed to
oclContext. However, if a ShaderOverride happens, oclContext can call
delete on the module, leaving pKernelModule a dangling pointer. This
causes issues if pKernelModule is dereferenced.1 parent baa8240 commit 4074fd7
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1180 | 1180 | | |
1181 | 1181 | | |
1182 | 1182 | | |
| 1183 | + | |
1183 | 1184 | | |
1184 | 1185 | | |
1185 | 1186 | | |
| |||
1369 | 1370 | | |
1370 | 1371 | | |
1371 | 1372 | | |
1372 | | - | |
| 1373 | + | |
1373 | 1374 | | |
1374 | 1375 | | |
1375 | 1376 | | |
| |||
0 commit comments