Skip to content

Commit e0e2ea9

Browse files
author
Erich Keane
committed
Update typo in test, add case to invalid option in commands.cpp
1 parent d238fa4 commit e0e2ea9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

clang/test/CodeGenSYCL/int-header-empty-signatures.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %clang_cc1 -fsycl-is-device -triple spir64-unknown-unknown -fsycl-int-header=%t.h %s -fsyntax-only
22
// RUN: FileCheck -input-file=%t.h %s
3-
// This testv validates that we don't generate an empty 'kernel_signatures' in
3+
// This test validates that we don't generate an empty 'kernel_signatures' in
44
// the case where there are no kernel fields. This is to avoid a warning in the
55
// integration header.
66

sycl/source/detail/scheduler/commands.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1792,6 +1792,9 @@ pi_result ExecCGCommand::SetKernelParamsAndLaunch(
17921792
&SpecConstsBuffer);
17931793
break;
17941794
}
1795+
case kernel_param_kind_t::kind_invalid:
1796+
throw runtime_error("Invalid kernel param kind", PI_INVALID_VALUE);
1797+
break;
17951798
}
17961799
};
17971800

0 commit comments

Comments
 (0)