File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -457,7 +457,10 @@ static ParamIterator preProcessArguments(
457
457
// which will go out-of-scope before we execute the fused kernel. Therefore,
458
458
// we need to copy the argument to a permant location and update the
459
459
// argument.
460
- Arg->Arg .MPtr = storePlainArgRaw (ArgStorage, Arg->Arg .MPtr , Arg->Arg .MSize );
460
+ if (Arg->Arg .MPtr ) {
461
+ Arg->Arg .MPtr =
462
+ storePlainArgRaw (ArgStorage, Arg->Arg .MPtr , Arg->Arg .MSize );
463
+ }
461
464
// Standard layout arguments do not participate in identical argument
462
465
// detection, but we still add it to the list here. As the SYCL runtime can
463
466
// only check the raw bytes for identical content, but is unaware of the
@@ -474,6 +477,7 @@ static ParamIterator preProcessArguments(
474
477
::jit_compiler::Parameter{Arg->KernelIndex , Arg->ArgIndex },
475
478
Arg->Arg .MPtr , Arg->Arg .MSize );
476
479
return ++Arg;
480
+
477
481
}
478
482
// First check if there's already another parameter with identical
479
483
// value.
You can’t perform that action at this time.
0 commit comments