forked from OSchip/llvm-project
parent
43c3562907
commit
7d2f94319f
|
@ -516,12 +516,12 @@ bool DeclSpec::SetStorageClassSpec(Sema &S, SCS SC, SourceLocation Loc,
|
|||
case SCS_extern:
|
||||
case SCS_private_extern:
|
||||
case SCS_static:
|
||||
if (S.getLangOpts().OpenCLVersion < 120) {
|
||||
DiagID = diag::err_opencl_unknown_type_specifier;
|
||||
PrevSpec = getSpecifierName(SC);
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
if (S.getLangOpts().OpenCLVersion < 120) {
|
||||
DiagID = diag::err_opencl_unknown_type_specifier;
|
||||
PrevSpec = getSpecifierName(SC);
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
case SCS_auto:
|
||||
case SCS_register:
|
||||
DiagID = diag::err_opencl_unknown_type_specifier;
|
||||
|
|
Loading…
Reference in New Issue