r321346 - Fix unused variable warning in SemaTemplate. NFC
Sam McCall via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 21 23:09:51 PST 2017
Author: sammccall
Date: Thu Dec 21 23:09:51 2017
New Revision: 321346
URL: http://llvm.org/viewvc/llvm-project?rev=321346&view=rev
Log:
Fix unused variable warning in SemaTemplate. NFC
Modified:
cfe/trunk/lib/Sema/SemaTemplate.cpp
Modified: cfe/trunk/lib/Sema/SemaTemplate.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaTemplate.cpp?rev=321346&r1=321345&r2=321346&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaTemplate.cpp (original)
+++ cfe/trunk/lib/Sema/SemaTemplate.cpp Thu Dec 21 23:09:51 2017
@@ -950,7 +950,7 @@ Decl *Sema::ActOnNonTypeTemplateParamete
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:
More information about the cfe-commits
mailing list