[CodeGen] Silence unused variable warning in Release builds.

llvm-svn: 296034
This commit is contained in:
Benjamin Kramer 2017-02-23 22:47:56 +00:00
parent 382bc51fdd
commit d12317ef90
1 changed files with 2 additions and 0 deletions

View File

@ -284,7 +284,9 @@ void CodeGenFunction::EmitCallAndReturnForThunk(llvm::Constant *CalleePtr,
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());