Skip to content

Commit 0c4d352

Browse files
committed
[SYCL] simplify changes
1 parent b6df1d9 commit 0c4d352

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

sycl/include/sycl/functional.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ template <typename T = void>
2727
struct logical_and
2828
#ifdef __INTEL_PREVIEW_BREAKING_CHANGES
2929
: std::logical_and<T>
30-
#endif
3130
{
32-
#ifndef __INTEL_PREVIEW_BREAKING_CHANGES
31+
#else
32+
{
3333
T operator()(const T &lhs, const T &rhs) const { return lhs && rhs; }
3434
#endif
3535
}; // namespace _V1
@@ -42,9 +42,9 @@ template <typename T = void>
4242
struct logical_or
4343
#ifdef __INTEL_PREVIEW_BREAKING_CHANGES
4444
: std::logical_or<T>
45-
#endif
4645
{
47-
#ifndef __INTEL_PREVIEW_BREAKING_CHANGES
46+
#else
47+
{
4848
T operator()(const T &lhs, const T &rhs) const { return lhs || rhs; }
4949
#endif
5050
}; // namespace sycl

sycl/test/basic_tests/logical_operations.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %clang -fpreview-breaking-changes -fsycl -o - %s
22
// RUN: not %clang -fpreview-breaking-changes -fsycl -DTEST_VOID_TYPES -o - %s
33
// RUN: %clang -fsycl -o - %s
4-
// RUN: not %clang -fsycl -DTEST_VOID_TYPES -o - %s
4+
// RUN: not %clang -fsycl -fsyntax-only -DTEST_VOID_TYPES -o - %s
55

66
#include <cassert>
77
#include <sycl/functional.hpp>

0 commit comments

Comments
 (0)