Skip to content

Commit 5e8e5ea

Browse files
[SYCL] Fix post commit after PR 2292 (#3939)
This patch fixes post commit caused by incorrect declaration of `cl` namespace: https://github.com/intel/llvm/runs/2838178517: ``` In file included from /home/runner/work/llvm/llvm/src/sycl/unittests/scheduler/FailedCommands.cpp:10: /home/runner/work/llvm/llvm/src/sycl/unittests/scheduler/SchedulerTestUtils.hpp:25:11: error: inline namespace reopened as a non-inline namespace [-Werror,-Winline-namespace-reopened-noninline] namespace cl { ^ inline /home/runner/work/llvm/llvm/src/sycl/source/detail/stream_impl.hpp:20:25: note: previous definition is here __SYCL_INLINE_NAMESPACE(cl) { ^ 1 error generated. ```
1 parent ae89341 commit 5e8e5ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/unittests/scheduler/SchedulerTestUtils.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222

2323
cl::sycl::detail::Requirement getMockRequirement();
2424

25-
namespace cl {
25+
__SYCL_INLINE_NAMESPACE(cl) {
2626
namespace sycl {
2727
namespace detail {
2828
class Command;
2929
} // namespace detail
3030
} // namespace sycl
31-
} // namespace cl
31+
} // __SYCL_INLINE_NAMESPACE(cl)
3232

3333
class MockCommand : public cl::sycl::detail::Command {
3434
public:

0 commit comments

Comments
 (0)