[Sema] Fix unused variable warning in Release builds

llvm-svn: 350529
This commit is contained in:
Benjamin Kramer 2019-01-07 15:22:08 +00:00
parent cc19f921b5
commit 27429d8786
1 changed files with 1 additions and 2 deletions

View File

@ -14294,8 +14294,7 @@ NamedDecl *Sema::ActOnFriendFunctionDecl(Scope *S, Declarator &D,
CXXScopeSpec &SS = D.getCXXScopeSpec();
DeclarationNameInfo NameInfo = GetNameForDeclarator(D);
DeclarationName Name = NameInfo.getName();
assert(Name);
assert(NameInfo.getName());
// Check for unexpanded parameter packs.
if (DiagnoseUnexpandedParameterPack(Loc, TInfo, UPPC_FriendDeclaration) ||