Skip to content
Snippets Groups Projects
Commit 142875b3 authored by NAKAMURA Takumi's avatar NAKAMURA Takumi
Browse files

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247778 91177308-0d34-0410-b5e6-96231b3b80d8
parent 2e47fee7
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment