Fix an unused-variable warning.

llvm-svn: 315689
This commit is contained in:
Haojian Wu 2017-10-13 15:37:53 +00:00
parent 2fe98c2b37
commit 5b5c81f683
1 changed files with 1 additions and 1 deletions

View File

@ -1516,7 +1516,7 @@ namespace {
llvm::Value *LoadThisForDtorDelete(CodeGenFunction &CGF,
const CXXDestructorDecl *DD) {
if (Expr *ThisArg = DD->getOperatorDeleteThisArg())
return CGF.EmitScalarExpr(DD->getOperatorDeleteThisArg());
return CGF.EmitScalarExpr(ThisArg);
return CGF.LoadCXXThis();
}