]> granicus.if.org Git - clang/commitdiff
Fix an unused-variable warning.
authorHaojian Wu <hokein@google.com>
Fri, 13 Oct 2017 15:37:53 +0000 (15:37 +0000)
committerHaojian Wu <hokein@google.com>
Fri, 13 Oct 2017 15:37:53 +0000 (15:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@315689 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGClass.cpp

index 60a99367532e6113e6b12e6b30b49e25f641c355..3b8209f06406488175b3959d9bf44aa297c35097 100644 (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();
   }