From: Haojian Wu Date: Fri, 13 Oct 2017 15:37:53 +0000 (+0000) Subject: Fix an unused-variable warning. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f06fa448148938a2b7cfa1c6185b452c8b5fb73c;p=clang Fix an unused-variable warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@315689 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGClass.cpp b/lib/CodeGen/CGClass.cpp index 60a9936753..3b8209f064 100644 --- a/lib/CodeGen/CGClass.cpp +++ b/lib/CodeGen/CGClass.cpp @@ -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(); }