r296034 - [CodeGen] Silence unused variable warning in Release builds.
Benjamin Kramer via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 23 14:47:57 PST 2017
Author: d0k
Date: Thu Feb 23 16:47:56 2017
New Revision: 296034
URL: http://llvm.org/viewvc/llvm-project?rev=296034&view=rev
Log:
[CodeGen] Silence unused variable warning in Release builds.
Modified:
cfe/trunk/lib/CodeGen/CGVTables.cpp
Modified: cfe/trunk/lib/CodeGen/CGVTables.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGVTables.cpp?rev=296034&r1=296033&r2=296034&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGVTables.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGVTables.cpp Thu Feb 23 16:47:56 2017
@@ -284,7 +284,9 @@ void CodeGenFunction::EmitCallAndReturnF
if (isa<CXXDestructorDecl>(MD))
CGM.getCXXABI().adjustCallArgsForDestructorThunk(*this, CurGD, CallArgs);
+#ifndef NDEBUG
unsigned PrefixArgs = CallArgs.size() - 1;
+#endif
// Add the rest of the arguments.
for (const ParmVarDecl *PD : MD->parameters())
EmitDelegateCallArg(CallArgs, PD, SourceLocation());
More information about the cfe-commits
mailing list