Skip to content

Commit 4d847c0

Browse files
Fznamznonbader
authored andcommitted
[SYCL] Remove redundant code
This code is redundant since we abandoned re-flower pass and OclCxx classes. Signed-off-by: Mariya Podchishchaeva <[email protected]>
1 parent 505e195 commit 4d847c0

File tree

2 files changed

+0
-33
lines changed

2 files changed

+0
-33
lines changed

clang/lib/Sema/SemaSYCL.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -345,12 +345,6 @@ class MarkDeviceFunction : public RecursiveASTVisitor<MarkDeviceFunction> {
345345
Ty = QualType{Ty->getPointeeOrArrayElementType(), 0};
346346

347347
if (const auto *CRD = Ty->getAsCXXRecordDecl()) {
348-
// FIXME: this seems like a temporary fix for SYCL programs
349-
// that pre-declare, use, but not define OclCXX classes,
350-
// which are later translated into SPIRV types.
351-
if (!CRD->hasDefinition())
352-
return true;
353-
354348
if (CRD->isPolymorphic()) {
355349
SemaRef.Diag(CRD->getLocation(), diag::err_sycl_virtual_types);
356350
SemaRef.Diag(Loc.getBegin(), diag::note_sycl_used_here);

clang/test/SemaSYCL/sycl-oclcxx.cpp

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)