Commit 64ae995
committed
sycl-ref: remove redundant NULL guards on sycl::free calls
SYCL spec §4.8.3.6 guarantees sycl::free(nullptr, ctx) is a no-op,
matching the behavior of std::free(NULL). The NULL checks on
d_array_owned and reduction_norm are unnecessary.1 parent 716118c commit 64ae995
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
691 | 691 | | |
692 | 692 | | |
693 | 693 | | |
694 | | - | |
695 | | - | |
| 694 | + | |
| 695 | + | |
696 | 696 | | |
697 | 697 | | |
698 | 698 | | |
| |||
0 commit comments