]> granicus.if.org Git - clang/commitdiff
CGClass.cpp: Fix a warning in -Asserts. [-Wunused-private-field]
authorNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 16 Sep 2015 06:26:56 +0000 (06:26 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 16 Sep 2015 06:26:56 +0000 (06:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247778 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGClass.cpp

index 277ee3714c7549fe8206b76d08e5ca8f54ca5c49..7d55685767628ca85aa315a5bc8a18f03763d840 100644 (file)
@@ -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();