Skip to content

Commit 97ddadb

Browse files
committed
Corrections to returning validity.
1 parent f1161d6 commit 97ddadb

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

clang/lib/Sema/SemaSYCL.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include <array>
3030
#include <functional>
3131
#include <initializer_list>
32+
#include <iostream>
3233

3334
using namespace clang;
3435
using namespace std::placeholders;
@@ -2277,7 +2278,13 @@ SYCLIntegrationHeader::SYCLIntegrationHeader(DiagnosticsEngine &_Diag,
22772278
// -----------------------------------------------------------------------------
22782279

22792280
bool Util::isSyclAccessorType(const QualType &Ty) {
2280-
return isSyclType(Ty, "accessor", true /*Tmpl*/);
2281+
std::cerr << "isSyclAccessorType:Ty\n";
2282+
Ty->dump();
2283+
bool b = isSyclType(Ty, "accessor", true /*Tmpl*/) || isSyclType(Ty, "accessor_common", true /*Tmpl*/);
2284+
std::cerr << (b ? "IS"
2285+
: "NOT")
2286+
<< " an accessor\n\n";
2287+
return b;
22812288
}
22822289

22832290
bool Util::isSyclSamplerType(const QualType &Ty) {

0 commit comments

Comments
 (0)