]> granicus.if.org Git - clang/commitdiff
[Sema] Fix unused variable warning in Release builds
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 7 Jan 2019 15:22:08 +0000 (15:22 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 7 Jan 2019 15:22:08 +0000 (15:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@350529 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDeclCXX.cpp

index 50d01f309bd4213777ba8342a99e0a5ea02dc34f..4ab220fd03f829506dbacf64d6a8d4434f226667 100644 (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) ||