Skip to content

Commit 8539879

Browse files
Add missing variable initialization.
1 parent 7db0650 commit 8539879

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sycl/source/detail/cg.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ class CG {
184184
MSharedPtrStorage(SIH.MSharedPtrStorage),
185185
MRequirements(SIH.MRequirements),
186186
MEvents(SIH.MEvents.begin(), SIH.MEvents.end()) {}
187-
// The following storages are needed to ensure that arguments won't die
187+
// The following storages are needed to ensure that arguments won't die
188188
// while we are using them.
189189
/// Storage for standard layout arguments.
190190
std::vector<std::vector<char>> MArgsStorage;

sycl/source/detail/handler_impl.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@ class handler_impl {
7373
/// Shared pointer to the primary queue implementation. This is different from
7474
/// the queue associated with the handler if the corresponding submission is
7575
/// a fallback from a previous submission.
76-
queue_impl *MSubmissionPrimaryQueue;
76+
queue_impl *MSubmissionPrimaryQueue = nullptr;
7777

7878
/// Shared pointer to the secondary queue implementation. Nullptr if no
7979
/// secondary queue fallback was given in the associated submission. This is
8080
/// equal to the queue associated with the handler if the corresponding
8181
/// submission is a fallback from a previous submission.
82-
queue_impl *MSubmissionSecondaryQueue;
82+
queue_impl *MSubmissionSecondaryQueue = nullptr;
8383

8484
/// Bool stores information about whether the event resulting from the
8585
/// corresponding work is required.

0 commit comments

Comments
 (0)