Fix unused variable warning in SemaTemplate. NFC

llvm-svn: 321346
This commit is contained in:
Sam McCall 2017-12-22 07:09:51 +00:00
parent 54a5ad3681
commit 1371cba56f
1 changed files with 1 additions and 1 deletions

View File

@ -950,7 +950,7 @@ Decl *Sema::ActOnNonTypeTemplateParameter(Scope *S, Declarator &D,
if (DS.getStorageClassSpec() != DeclSpec::SCS_unspecified)
EmitDiag(DS.getStorageClassSpecLoc());
if (DeclSpec::TSCS TSCS = DS.getThreadStorageClassSpec())
if (DS.getThreadStorageClassSpec() != TSCS_unspecified)
EmitDiag(DS.getThreadStorageClassSpecLoc());
// [dcl.inline]p1: