r350529 - [Sema] Fix unused variable warning in Release builds
Benjamin Kramer via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 7 07:22:08 PST 2019
Author: d0k
Date: Mon Jan 7 07:22:08 2019
New Revision: 350529
URL: http://llvm.org/viewvc/llvm-project?rev=350529&view=rev
Log:
[Sema] Fix unused variable warning in Release builds
Modified:
cfe/trunk/lib/Sema/SemaDeclCXX.cpp
Modified: cfe/trunk/lib/Sema/SemaDeclCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclCXX.cpp?rev=350529&r1=350528&r2=350529&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclCXX.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclCXX.cpp Mon Jan 7 07:22:08 2019
@@ -14294,8 +14294,7 @@ NamedDecl *Sema::ActOnFriendFunctionDecl
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) ||
More information about the cfe-commits
mailing list