From: Benjamin Kramer Date: Mon, 7 Jan 2019 15:22:08 +0000 (+0000) Subject: [Sema] Fix unused variable warning in Release builds X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=585feb7fd5e393b20bc15fb162f3d05945af2705;p=clang [Sema] Fix unused variable warning in Release builds git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@350529 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaDeclCXX.cpp b/lib/Sema/SemaDeclCXX.cpp index 50d01f309b..4ab220fd03 100644 --- a/lib/Sema/SemaDeclCXX.cpp +++ b/lib/Sema/SemaDeclCXX.cpp @@ -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) ||