Skip to content

Commit 7326c87

Browse files
authored
[SYCL][NFC] Code clean up (phase 3) revealed by self build. (#2865)
1 parent c54da15 commit 7326c87

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/lib/Driver/ToolChain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1240,7 +1240,7 @@ llvm::opt::DerivedArgList *ToolChain::TranslateOffloadTargetArgs(
12401240
continue;
12411241
}
12421242

1243-
unsigned Index;
1243+
unsigned Index = 0;
12441244
unsigned Prev;
12451245
bool XOffloadTargetNoTriple;
12461246

sycl/plugins/level_zero/pi_level_zero.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4888,7 +4888,7 @@ pi_result piextUSMFree(pi_context Context, void *Ptr) {
48884888
assert(Device);
48894889

48904890
auto DeallocationHelper =
4891-
[Context, Device,
4891+
[Device,
48924892
Ptr](std::unordered_map<pi_device, USMAllocContext> &AllocContextMap) {
48934893
try {
48944894
auto It = AllocContextMap.find(Device);

0 commit comments

Comments
 (0)