Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion clang/lib/Sema/SemaSYCL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <array>
#include <functional>
#include <initializer_list>
#include <iostream>

using namespace clang;
using namespace std::placeholders;
Expand Down Expand Up @@ -2277,7 +2278,13 @@ SYCLIntegrationHeader::SYCLIntegrationHeader(DiagnosticsEngine &_Diag,
// -----------------------------------------------------------------------------

bool Util::isSyclAccessorType(const QualType &Ty) {
return isSyclType(Ty, "accessor", true /*Tmpl*/);
std::cerr << "isSyclAccessorType:Ty\n";
Ty->dump();
bool b = isSyclType(Ty, "accessor", true /*Tmpl*/) || isSyclType(Ty, "accessor_common", true /*Tmpl*/);
std::cerr << (b ? "IS"
: "NOT")
<< " an accessor\n\n";
return b;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, it seems something wrong happened, right?

}

bool Util::isSyclSamplerType(const QualType &Ty) {
Expand Down