Skip to content

Commit a0e41f5

Browse files
committed
[Driver][SYCL] Correcting a sanitizer fail with null pointer
Signed-off-by: Harini Chilamantula <[email protected]>
1 parent 0ddb9fe commit a0e41f5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/lib/Driver/Driver.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4791,6 +4791,9 @@ void Driver::BuildActions(Compilation &C, DerivedArgList &Args,
47914791
if (!UnbundlerInputs.empty()) {
47924792
Action *PartialLink =
47934793
C.MakeAction<PartialLinkJobAction>(UnbundlerInputs, types::TY_Object);
4794+
if (!LastArg)
4795+
LastArg = &(dyn_cast<InputAction>(UnbundlerInputs.back())->getInputArg());
4796+
47944797
Action *Current = C.MakeAction<InputAction>(*LastArg, types::TY_Object);
47954798
ActionList AL;
47964799
AL.push_back(PartialLink);

0 commit comments

Comments
 (0)