r207039 - Suppress unused variable warning
Reid Kleckner
reid at kleckner.net
Wed Apr 23 15:03:04 PDT 2014
Author: rnk
Date: Wed Apr 23 17:03:04 2014
New Revision: 207039
URL: http://llvm.org/viewvc/llvm-project?rev=207039&view=rev
Log:
Suppress unused variable warning
Modified:
cfe/trunk/lib/AST/Decl.cpp
Modified: cfe/trunk/lib/AST/Decl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Decl.cpp?rev=207039&r1=207038&r2=207039&view=diff
==============================================================================
--- cfe/trunk/lib/AST/Decl.cpp (original)
+++ cfe/trunk/lib/AST/Decl.cpp Wed Apr 23 17:03:04 2014
@@ -3202,8 +3202,10 @@ TagDecl *TagDecl::getCanonicalDecl() { r
void TagDecl::setTypedefNameForAnonDecl(TypedefNameDecl *TDD) {
NamedDeclOrQualifier = TDD;
- if (const Type *T = getTypeForDecl())
+ if (const Type *T = getTypeForDecl()) {
+ (void)T;
assert(T->isLinkageValid());
+ }
assert(isLinkageValid());
}
More information about the cfe-commits
mailing list