Suppress unused variable warning

llvm-svn: 207039
This commit is contained in:
Reid Kleckner 2014-04-23 22:03:04 +00:00
parent b6d051c4f0
commit cae82a205e

View File

@ -3202,8 +3202,10 @@ TagDecl *TagDecl::getCanonicalDecl() { return getFirstDecl(); }
void TagDecl::setTypedefNameForAnonDecl(TypedefNameDecl *TDD) {
NamedDeclOrQualifier = TDD;
if (const Type *T = getTypeForDecl())
if (const Type *T = getTypeForDecl()) {
(void)T;
assert(T->isLinkageValid());
}
assert(isLinkageValid());
}