Skip to content

Commit a476a49

Browse files
[SYCL][Driver][NFC] Address klockwork issues (#2496)
Signed-off-by: Meghana Thatishetti <[email protected]>
1 parent 0092d4d commit a476a49

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clang/lib/Driver/ToolChain.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1255,6 +1255,10 @@ llvm::opt::DerivedArgList *ToolChain::TranslateOffloadTargetArgs(
12551255
continue;
12561256
}
12571257
}
1258+
1259+
if (!XOffloadTargetArg)
1260+
continue;
1261+
12581262
XOffloadTargetArg->setBaseArg(A);
12591263
A = XOffloadTargetArg.release();
12601264
AllocatedArgs.push_back(A);

0 commit comments

Comments
 (0)