Skip to content

Commit 9a402c8

Browse files
committed
[SYCL][Driver] Modify conditional judgment to match printing internal defines only.
Signed-off-by: haonanya <[email protected]>
1 parent 11936e1 commit 9a402c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Driver/Driver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5754,7 +5754,7 @@ InputInfo Driver::BuildJobsForActionNoCache(
57545754
// Check if we are in sub-work for preprocessing for host side. If so we will
57555755
// add another job to print information to terminal later.
57565756
if (!AtTopLevel && A->getKind() == Action::PreprocessJobClass &&
5757-
!C.getJobs().empty())
5757+
C.getJobs().size() == 1)
57585758
JobForPreprocessToStdout = true;
57595759

57605760
// Always use the first input as the base input.

0 commit comments

Comments
 (0)