Skip to content

Commit c4cb117

Browse files
committed
Remove dead code
1 parent 39d0942 commit c4cb117

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

clang/lib/Sema/SemaDeclAttr.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4831,10 +4831,6 @@ static void handleSYCLDeviceIndirectlyCallableAttr(Sema &S, Decl *D,
48314831

48324832
static void handleSYCLRegisterNumAttr(Sema &S, Decl *D, const ParsedAttr &AL) {
48334833
auto *VD = cast<VarDecl>(D);
4834-
if (!VD->hasGlobalStorage()) {
4835-
S.Diag(AL.getLoc(), diag::err_sycl_attribute_internal_function) << AL << 0;
4836-
return;
4837-
}
48384834
if (!checkAttributeNumArgs(S, AL, 1))
48394835
return;
48404836
uint32_t RegNo = 0;

0 commit comments

Comments
 (0)