Skip to content

Commit a000704

Browse files
committed
Remove more redundant diagnostic checking.
1 parent d81fe63 commit a000704

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

clang/lib/Sema/SemaStmtAttr.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -245,12 +245,6 @@ static Attr *handleIntelFPGAIVDepAttr(Sema &S, Stmt *St, const ParsedAttr &A) {
245245

246246
static Attr *handleIntelFPGANofusionAttr(Sema &S, Stmt *St,
247247
const ParsedAttr &A) {
248-
if (!isa<ForStmt, CXXForRangeStmt, DoStmt, WhileStmt>(St)) {
249-
S.Diag(A.getLoc(), diag::err_attribute_wrong_decl_type_str)
250-
<< A << "'for', 'while', and 'do' statements";
251-
return nullptr;
252-
}
253-
254248
return new (S.Context) SYCLIntelFPGANofusionAttr(S.Context, A);
255249
}
256250

0 commit comments

Comments
 (0)