r315689 - Fix an unused-variable warning.

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 13 08:37:53 PDT 2017


Author: hokein
Date: Fri Oct 13 08:37:53 2017
New Revision: 315689

URL: http://llvm.org/viewvc/llvm-project?rev=315689&view=rev
Log:
Fix an unused-variable warning.

Modified:
    cfe/trunk/lib/CodeGen/CGClass.cpp

Modified: cfe/trunk/lib/CodeGen/CGClass.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGClass.cpp?rev=315689&r1=315688&r2=315689&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGClass.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGClass.cpp Fri Oct 13 08:37:53 2017
@@ -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();
   }
 




More information about the cfe-commits mailing list