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

llvm-svn: 247778
This commit is contained in:
NAKAMURA Takumi 2015-09-16 06:26:56 +00:00
parent d42d3df56f
commit ee82b497f8
1 changed files with 1 additions and 0 deletions

View 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();