Skip to content

Commit 9be624c

Browse files
author
Erich Keane
committed
Remove use of is_same_v which is C++17, update test to use disable lambda flag
1 parent f1cf728 commit 9be624c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sycl/include/CL/sycl/handler.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ class __SYCL_EXPORT handler {
823823
getRangeRoundedKernelLambda<NameWT, TransformedArgType, Dims>(
824824
KernelFunc, NumWorkItems);
825825

826-
using KName = std::conditional_t<std::is_same_v<KernelType, NameT>,
826+
using KName = std::conditional_t<std::is_same<KernelType, NameT>::value,
827827
decltype(Wrapper), NameWT>;
828828

829829
range<Dims> AdjustedRange = NumWorkItems;

sycl/test/basic_tests/handler/unnamed-lambda-negative.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx -Xclang -fsycl-is-host -std=c++17 -isystem %sycl_include/sycl -Xclang -verify -fsyntax-only %s -Xclang -verify-ignore-unexpected=note
1+
// RUN: %clangxx -Xclang -fsycl-is-host -std=c++17 -fno-sycl-unnamed-lambda -isystem %sycl_include/sycl -Xclang -verify -fsyntax-only %s -Xclang -verify-ignore-unexpected=note
22
#include <CL/sycl.hpp>
33

44
int main() {

0 commit comments

Comments
 (0)