r247778 - CGClass.cpp: Fix a warning in -Asserts. [-Wunused-private-field]

NAKAMURA Takumi via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 15 23:26:56 PDT 2015


Author: chapuni
Date: Wed Sep 16 01:26:56 2015
New Revision: 247778

URL: http://llvm.org/viewvc/llvm-project?rev=247778&view=rev
Log:
CGClass.cpp: Fix a warning in -Asserts. [-Wunused-private-field]

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=247778&r1=247777&r2=247778&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGClass.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGClass.cpp Wed Sep 16 01:26:56 2015
@@ -1789,6 +1789,7 @@ namespace {
     // Generate function call for handling vtable pointer poisoning.
     void Emit(CodeGenFunction &CGF, Flags flags) override {
       assert(Dtor->getParent()->isDynamicClass());
+      (void)Dtor;
       ASTContext &Context = CGF.getContext();
       // Poison vtable and vtable ptr if they exist for this class.
       llvm::Value *VTablePtr = CGF.LoadCXXThis();




More information about the cfe-commits mailing list