forked from OSchip/llvm-project
[Sema] Fix unused variable warning in Release builds
llvm-svn: 350529
This commit is contained in:
parent
cc19f921b5
commit
27429d8786
|
@ -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) ||
|
||||
|
|
Loading…
Reference in New Issue